Skip to content

Add dogfood image #3350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Aug 2, 2022
Prev Previous commit
Next Next commit
fixup! Add CI
  • Loading branch information
ammario committed Aug 2, 2022
commit 69f5382f47734f592d56df0d0eb23361a1b22cbf
30 changes: 17 additions & 13 deletions .github/workflows/dogfood.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,23 @@ on:
- "dogfood/**"
workflow_dispatch:
jobs:
build:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache Docker
id: cache-docker
uses: actions/cache@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
path: |
/var/lib/docker
key: ${{ hashFiles('dogfood/**') }}
- name: build
run: |
cd dogfood
make docker-build
username: ammarb
password: ${{ secrets.AMMARB_DOCKERHUB }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}:dogfood"
push: true
tags: codercom/oss-dogfood:${GITHUB_REF##*/}
cache-from: type=registry,ref=codercom/oss-dogfood:latest
cache-to: type=inline