Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add cache to build step in backend

Maidul Islame4d302b7e1a6
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index b2cda6fe50..579f6bd46d 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -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