Add cache to build step in backend

This commit is contained in:
Maidul Islam
2023-01-10 11:56:42 -05:00
parent 3eb2209eb8
commit e4d302b7e1

View File

@ -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
@ -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