Skip to content

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

add seperate step for ecr build

Maidul Islam3baca73e5315
diff --git a/.github/workflows/build-staging-and-deploy.yml b/.github/workflows/build-staging-and-deploy.yml
index de659a7f8a..d8957a4525 100644
--- a/.github/workflows/build-staging-and-deploy.yml
+++ b/.github/workflows/build-staging-and-deploy.yml
@@ -45,6 +45,21 @@ jobs:
file: Dockerfile.standalone-infisical
tags: infisical/infisical:test
- name: 🏗️ Build backend and push to docker hub
+ uses: depot/build-push-action@v1
+ with:
+ project: 64mmf0n610
+ token: ${{ secrets.DEPOT_PROJECT_TOKEN }}
+ push: true
+ context: .
+ file: Dockerfile.standalone-infisical
+ tags: |
+ infisical/staging_infisical:${{ steps.commit.outputs.short }}
+ infisical/staging_infisical:latest
+ platforms: linux/amd64,linux/arm64
+ build-args: |
+ POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
+ INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }}
+ - name: 🏗️ Build backend and push to ECR
uses: depot/build-push-action@v1
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
@@ -56,14 +71,14 @@ jobs:
context: .
file: Dockerfile.standalone-infisical
tags: |
- infisical/staging_infisical:${{ steps.commit.outputs.short }}
- infisical/staging_infisical:latest
${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:latest
${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ steps.commit.outputs.short }}
- platforms: linux/amd64,linux/arm64
+ platforms: linux/amd64
build-args: |
POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }}
+
+