From 3baca73e531526b20ec30457dec6676cf4ca817b Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Wed, 20 Mar 2024 16:25:54 -0400 Subject: [PATCH] add seperate step for ecr build --- .../workflows/build-staging-and-deploy.yml | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-staging-and-deploy.yml b/.github/workflows/build-staging-and-deploy.yml index de659a7f8..d8957a452 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 }} + +