diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index bc54e43a3c..a0d7ae7920 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -91,32 +91,14 @@ jobs: - name: 📦 Build frontend and export to Docker uses: docker/build-push-action@v3 with: - load: true + # load: true + push: false context: frontend tags: infisical/frontend:test cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max build-args: | POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} - - name: ⏻ Spawn frontend container - run: | - docker run -d --rm --name infisical-frontend-test infisical/frontend:test - - name: 🧪 Test frontend image - run: | - ./.github/resources/healthcheck.sh infisical-frontend-test - - name: ⏻ Shut down frontend container - run: | - docker stop infisical-frontend-test - - name: 🏗️ Build frontend and push - uses: docker/build-push-action@v3 - with: - push: false - context: frontend - tags: infisical/frontend:${{ steps.commit.outputs.short }}, - infisical/frontend:latest - platforms: linux/amd64,linux/arm64 - build-args: | - POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} - # Temp fix # https://github.com/docker/build-push-action/issues/252 # https://github.com/moby/buildkit/issues/1896