Skip to content

ci: use depot.dev to build dogfood image #11378

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 3 commits into from
Jan 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ci: use depot.dev to build dogfood image
  • Loading branch information
matifali authored Jan 2, 2024
commit 4f15ef5177f6a457918042374e76ceeb29419b4e
10 changes: 5 additions & 5 deletions .github/workflows/dogfood.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
tag=${tag//\//--}
echo "tag=${tag}" >> $GITHUB_OUTPUT

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up Depot CLI
uses: depot/setup-action@v1

- name: Login to DockerHub
if: github.ref == 'refs/heads/main'
Expand All @@ -43,14 +43,14 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
uses: depot/build-push-action@v1
with:
project: coder
token: ${{ secrets.DEPOT_TOKEN }}
context: "{{defaultContext}}:dogfood"
pull: true
push: ${{ github.ref == 'refs/heads/main' }}
tags: "codercom/oss-dogfood:${{ steps.docker-tag-name.outputs.tag }},codercom/oss-dogfood:latest"
cache-from: type=registry,ref=codercom/oss-dogfood:latest
cache-to: type=inline

deploy_template:
needs: build_image
Expand Down