Skip to content

Commit

Permalink
Add cache to build step in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Jan 10, 2023
1 parent 3eb2209 commit e4d302b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ jobs:
- name: 🏗️ Build backend and push
uses: docker/build-push-action@v3
with:
push: false
push: push
context: backend
tags: infisical/backend:${{ steps.commit.outputs.short }},
infisical/backend:latest
platforms: linux/amd64,linux/arm64
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
Expand Down Expand Up @@ -110,7 +112,7 @@ jobs:
- name: 🏗️ Build frontend and push
uses: docker/build-push-action@v3
with:
push: false
push: true
context: frontend
tags: infisical/frontend:${{ steps.commit.outputs.short }},
infisical/frontend:latest
Expand Down

0 comments on commit e4d302b

Please sign in to comment.