From d09396b47adf8dd42fd7bd038c63c5423cac6101 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sat, 27 Sep 2025 00:41:02 +0400 Subject: [PATCH 1/9] feat: auto trigger binary release --- ...standalone-docker-img-postgres-offical.yml | 194 ++++++++++-------- 1 file changed, 106 insertions(+), 88 deletions(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index b17d5e50c..db0525b9e 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -5,6 +5,8 @@ on: - "v*.*.*" - "v*.*.*-nightly-*" - "v*.*.*-nightly-*.*" + branches: + - "daniel/auto-trigger-binary-release" jobs: infisical-tests: @@ -20,51 +22,51 @@ jobs: - name: Extract version from tag id: extract_version run: echo "::set-output name=version::${GITHUB_REF_NAME}" - - name: ☁️ Checkout source - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: 📦 Install dependencies to test all dependencies - run: npm ci --only-production - working-directory: backend - - name: version output - run: | - echo "Output Value: ${{ steps.version.outputs.major }}" - echo "Output Value: ${{ steps.version.outputs.minor }}" - echo "Output Value: ${{ steps.version.outputs.patch }}" - echo "Output Value: ${{ steps.version.outputs.version }}" - echo "Output Value: ${{ steps.version.outputs.version_type }}" - echo "Output Value: ${{ steps.version.outputs.increment }}" - - name: Save commit hashes for tag - id: commit - uses: pr-mpt/actions-commit-hash@v2 - - name: 🔧 Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: 🐋 Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Set up Depot CLI - uses: depot/setup-action@v1 - - name: 📦 Build backend and export to Docker - uses: depot/build-push-action@v1 - with: - project: 64mmf0n610 - token: ${{ secrets.DEPOT_PROJECT_TOKEN }} - push: true - context: . - tags: | - infisical/infisical:latest - infisical/infisical:${{ steps.commit.outputs.short }} - infisical/infisical:${{ steps.extract_version.outputs.version }} - platforms: linux/amd64,linux/arm64 - file: Dockerfile.standalone-infisical - build-args: | - POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} - INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }} - DD_GIT_REPOSITORY_URL=${{ github.server_url }}/${{ github.repository }} - DD_GIT_COMMIT_SHA=${{ github.sha }} + # - name: ☁️ Checkout source + # uses: actions/checkout@v3 + # with: + # fetch-depth: 0 + # - name: 📦 Install dependencies to test all dependencies + # run: npm ci --only-production + # working-directory: backend + # - name: version output + # run: | + # echo "Output Value: ${{ steps.version.outputs.major }}" + # echo "Output Value: ${{ steps.version.outputs.minor }}" + # echo "Output Value: ${{ steps.version.outputs.patch }}" + # echo "Output Value: ${{ steps.version.outputs.version }}" + # echo "Output Value: ${{ steps.version.outputs.version_type }}" + # echo "Output Value: ${{ steps.version.outputs.increment }}" + # - name: Save commit hashes for tag + # id: commit + # uses: pr-mpt/actions-commit-hash@v2 + # - name: 🔧 Set up Docker Buildx + # uses: docker/setup-buildx-action@v2 + # - name: 🐋 Login to Docker Hub + # uses: docker/login-action@v2 + # with: + # username: ${{ secrets.DOCKERHUB_USERNAME }} + # password: ${{ secrets.DOCKERHUB_TOKEN }} + # - name: Set up Depot CLI + # uses: depot/setup-action@v1 + # - name: 📦 Build backend and export to Docker + # uses: depot/build-push-action@v1 + # with: + # project: 64mmf0n610 + # token: ${{ secrets.DEPOT_PROJECT_TOKEN }} + # push: true + # context: . + # tags: | + # infisical/infisical:latest + # infisical/infisical:${{ steps.commit.outputs.short }} + # infisical/infisical:${{ steps.extract_version.outputs.version }} + # platforms: linux/amd64,linux/arm64 + # file: Dockerfile.standalone-infisical + # build-args: | + # POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} + # INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }} + # DD_GIT_REPOSITORY_URL=${{ github.server_url }}/${{ github.repository }} + # DD_GIT_COMMIT_SHA=${{ github.sha }} infisical-fips-standalone: name: Build infisical standalone image postgres @@ -74,46 +76,62 @@ jobs: - name: Extract version from tag id: extract_version run: echo "::set-output name=version::${GITHUB_REF_NAME}" - - name: ☁️ Checkout source - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: 📦 Install dependencies to test all dependencies - run: npm ci --only-production - working-directory: backend - - name: version output - run: | - echo "Output Value: ${{ steps.version.outputs.major }}" - echo "Output Value: ${{ steps.version.outputs.minor }}" - echo "Output Value: ${{ steps.version.outputs.patch }}" - echo "Output Value: ${{ steps.version.outputs.version }}" - echo "Output Value: ${{ steps.version.outputs.version_type }}" - echo "Output Value: ${{ steps.version.outputs.increment }}" - - name: Save commit hashes for tag - id: commit - uses: pr-mpt/actions-commit-hash@v2 - - name: 🔧 Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: 🐋 Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Set up Depot CLI - uses: depot/setup-action@v1 - - name: 📦 Build backend and export to Docker - uses: depot/build-push-action@v1 - with: - project: 64mmf0n610 - token: ${{ secrets.DEPOT_PROJECT_TOKEN }} - push: true - context: . - tags: | - infisical/infisical-fips:latest - infisical/infisical-fips:${{ steps.commit.outputs.short }} - infisical/infisical-fips:${{ steps.extract_version.outputs.version }} - platforms: linux/amd64,linux/arm64 - file: Dockerfile.fips.standalone-infisical - build-args: | - POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} - INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }} + # - name: ☁️ Checkout source + # uses: actions/checkout@v3 + # with: + # fetch-depth: 0 + # - name: 📦 Install dependencies to test all dependencies + # run: npm ci --only-production + # working-directory: backend + # - name: version output + # run: | + # echo "Output Value: ${{ steps.version.outputs.major }}" + # echo "Output Value: ${{ steps.version.outputs.minor }}" + # echo "Output Value: ${{ steps.version.outputs.patch }}" + # echo "Output Value: ${{ steps.version.outputs.version }}" + # echo "Output Value: ${{ steps.version.outputs.version_type }}" + # echo "Output Value: ${{ steps.version.outputs.increment }}" + # - name: Save commit hashes for tag + # id: commit + # uses: pr-mpt/actions-commit-hash@v2 + # - name: 🔧 Set up Docker Buildx + # uses: docker/setup-buildx-action@v2 + # - name: 🐋 Login to Docker Hub + # uses: docker/login-action@v2 + # with: + # username: ${{ secrets.DOCKERHUB_USERNAME }} + # password: ${{ secrets.DOCKERHUB_TOKEN }} + # - name: Set up Depot CLI + # uses: depot/setup-action@v1 + # - name: 📦 Build backend and export to Docker + # uses: depot/build-push-action@v1 + # with: + # project: 64mmf0n610 + # token: ${{ secrets.DEPOT_PROJECT_TOKEN }} + # push: true + # context: . + # tags: | + # infisical/infisical-fips:latest + # infisical/infisical-fips:${{ steps.commit.outputs.short }} + # infisical/infisical-fips:${{ steps.extract_version.outputs.version }} + # platforms: linux/amd64,linux/arm64 + # file: Dockerfile.fips.standalone-infisical + # build-args: | + # POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} + # INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }} + trigger-binary-release: + runs-on: ubuntu-latest + needs: [infisical-standalone, infisical-fips-standalone] + permissions: + contents: write + steps: + - name: Create tag if it doesn't exist + run: | + if ! gh api repos/Infisical/infisical-omnibus/git/refs/tags/${{ github.ref_name }} 2>/dev/null; then + LATEST_SHA=$(gh api repos/Infisical/infisical-omnibus/git/refs/heads/main --jq '.object.sha') + gh api repos/Infisical/infisical-omnibus/git/refs \ + --method POST \ + --field ref="refs/tags/v0.150.0-nightly-20250926" \ + --field sha="$LATEST_SHA" + fi +# --field ref="refs/tags/${{ github.ref_name }}" \ \ No newline at end of file From e2f8c1c1d26dd4253f1c7adcd7d5aa66ae25cc4a Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sat, 27 Sep 2025 00:41:56 +0400 Subject: [PATCH 2/9] Update release-standalone-docker-img-postgres-offical.yml --- .../release-standalone-docker-img-postgres-offical.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index db0525b9e..517d394af 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -1,10 +1,10 @@ name: Release standalone docker image on: push: - tags: - - "v*.*.*" - - "v*.*.*-nightly-*" - - "v*.*.*-nightly-*.*" + # tags: + # - "v*.*.*" + # - "v*.*.*-nightly-*" + # - "v*.*.*-nightly-*.*" branches: - "daniel/auto-trigger-binary-release" From 84ac47cf2e2df67874a6b7771fe8f681b9965ad9 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sat, 27 Sep 2025 00:42:15 +0400 Subject: [PATCH 3/9] Update release-standalone-docker-img-postgres-offical.yml --- .../release-standalone-docker-img-postgres-offical.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index 517d394af..5e7aa1549 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -6,7 +6,7 @@ on: # - "v*.*.*-nightly-*" # - "v*.*.*-nightly-*.*" branches: - - "daniel/auto-trigger-binary-release" + - "daniel/daniel/auto-trigger-binary-release" jobs: infisical-tests: From bdb6a7c96bbb109463f4058be34f0600651ac858 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sat, 27 Sep 2025 00:55:11 +0400 Subject: [PATCH 4/9] Update release-standalone-docker-img-postgres-offical.yml --- .../release-standalone-docker-img-postgres-offical.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index 5e7aa1549..eea40b546 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -17,7 +17,7 @@ jobs: infisical-standalone: name: Build infisical standalone image postgres runs-on: ubuntu-latest - needs: [infisical-tests] + # needs: [infisical-tests] steps: - name: Extract version from tag id: extract_version @@ -71,7 +71,7 @@ jobs: infisical-fips-standalone: name: Build infisical standalone image postgres runs-on: ubuntu-latest - needs: [infisical-tests] + # needs: [infisical-tests] steps: - name: Extract version from tag id: extract_version @@ -134,4 +134,6 @@ jobs: --field ref="refs/tags/v0.150.0-nightly-20250926" \ --field sha="$LATEST_SHA" fi + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # --field ref="refs/tags/${{ github.ref_name }}" \ \ No newline at end of file From 2ef99320770938c3fb16543af776210f027ee9dc Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sat, 27 Sep 2025 01:06:30 +0400 Subject: [PATCH 5/9] Update release-standalone-docker-img-postgres-offical.yml --- ...standalone-docker-img-postgres-offical.yml | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index eea40b546..656f5e2ac 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -127,13 +127,23 @@ jobs: steps: - name: Create tag if it doesn't exist run: | - if ! gh api repos/Infisical/infisical-omnibus/git/refs/tags/${{ github.ref_name }} 2>/dev/null; then + TAG_NAME="v0.150.0-nightly-20250926" + echo "Checking for tag: $TAG_NAME" + + if gh api repos/Infisical/infisical-omnibus/git/refs/tags/$TAG_NAME --silent 2>/dev/null; then + echo "Tag $TAG_NAME already exists, skipping..." + else + echo "Creating tag in Infisical/infisical-omnibus: $TAG_NAME" LATEST_SHA=$(gh api repos/Infisical/infisical-omnibus/git/refs/heads/main --jq '.object.sha') + echo "Latest SHA: $LATEST_SHA" + gh api repos/Infisical/infisical-omnibus/git/refs \ --method POST \ - --field ref="refs/tags/v0.150.0-nightly-20250926" \ + --field ref="refs/tags/$TAG_NAME" \ --field sha="$LATEST_SHA" - fi + + echo "Successfully created tag $TAG_NAME" + fi env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# --field ref="refs/tags/${{ github.ref_name }}" \ \ No newline at end of file + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # --field ref="refs/tags/${{ github.ref_name }}" \ \ No newline at end of file From df5fa3d3a4a7042f2bfff6b06200647a40e94823 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sat, 27 Sep 2025 02:37:01 +0400 Subject: [PATCH 6/9] Update release-standalone-docker-img-postgres-offical.yml --- .../release-standalone-docker-img-postgres-offical.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index 656f5e2ac..a8da2470f 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -145,5 +145,5 @@ jobs: echo "Successfully created tag $TAG_NAME" fi env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.OMNIBUS_RELEASE_TOKEN }} # --field ref="refs/tags/${{ github.ref_name }}" \ \ No newline at end of file From 0cf13aea7b604c68d60f3401a207c0d720c0a122 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sat, 27 Sep 2025 02:44:43 +0400 Subject: [PATCH 7/9] Update release-standalone-docker-img-postgres-offical.yml --- .../release-standalone-docker-img-postgres-offical.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index a8da2470f..7b82f70af 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -122,12 +122,10 @@ jobs: trigger-binary-release: runs-on: ubuntu-latest needs: [infisical-standalone, infisical-fips-standalone] - permissions: - contents: write steps: - name: Create tag if it doesn't exist run: | - TAG_NAME="v0.150.0-nightly-20250926" + TAG_NAME="${{ github.ref_name }}" echo "Checking for tag: $TAG_NAME" if gh api repos/Infisical/infisical-omnibus/git/refs/tags/$TAG_NAME --silent 2>/dev/null; then @@ -145,5 +143,4 @@ jobs: echo "Successfully created tag $TAG_NAME" fi env: - GH_TOKEN: ${{ secrets.OMNIBUS_RELEASE_TOKEN }} - # --field ref="refs/tags/${{ github.ref_name }}" \ \ No newline at end of file + GH_TOKEN: ${{ secrets.OMNIBUS_RELEASE_TOKEN }} \ No newline at end of file From 3ded89930aaaa2c77ae28aa381b7ebda5806e7dc Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sat, 27 Sep 2025 02:45:29 +0400 Subject: [PATCH 8/9] Update release-standalone-docker-img-postgres-offical.yml --- ...standalone-docker-img-postgres-offical.yml | 191 +++++++++--------- 1 file changed, 95 insertions(+), 96 deletions(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index 7b82f70af..34b68e8f3 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -1,12 +1,11 @@ name: Release standalone docker image on: push: - # tags: - # - "v*.*.*" - # - "v*.*.*-nightly-*" - # - "v*.*.*-nightly-*.*" - branches: - - "daniel/daniel/auto-trigger-binary-release" + tags: + - "v*.*.*" + - "v*.*.*-nightly-*" + - "v*.*.*-nightly-*.*" + jobs: infisical-tests: @@ -17,108 +16,108 @@ jobs: infisical-standalone: name: Build infisical standalone image postgres runs-on: ubuntu-latest - # needs: [infisical-tests] + needs: [infisical-tests] steps: - name: Extract version from tag id: extract_version run: echo "::set-output name=version::${GITHUB_REF_NAME}" - # - name: ☁️ Checkout source - # uses: actions/checkout@v3 - # with: - # fetch-depth: 0 - # - name: 📦 Install dependencies to test all dependencies - # run: npm ci --only-production - # working-directory: backend - # - name: version output - # run: | - # echo "Output Value: ${{ steps.version.outputs.major }}" - # echo "Output Value: ${{ steps.version.outputs.minor }}" - # echo "Output Value: ${{ steps.version.outputs.patch }}" - # echo "Output Value: ${{ steps.version.outputs.version }}" - # echo "Output Value: ${{ steps.version.outputs.version_type }}" - # echo "Output Value: ${{ steps.version.outputs.increment }}" - # - name: Save commit hashes for tag - # id: commit - # uses: pr-mpt/actions-commit-hash@v2 - # - name: 🔧 Set up Docker Buildx - # uses: docker/setup-buildx-action@v2 - # - name: 🐋 Login to Docker Hub - # uses: docker/login-action@v2 - # with: - # username: ${{ secrets.DOCKERHUB_USERNAME }} - # password: ${{ secrets.DOCKERHUB_TOKEN }} - # - name: Set up Depot CLI - # uses: depot/setup-action@v1 - # - name: 📦 Build backend and export to Docker - # uses: depot/build-push-action@v1 - # with: - # project: 64mmf0n610 - # token: ${{ secrets.DEPOT_PROJECT_TOKEN }} - # push: true - # context: . - # tags: | - # infisical/infisical:latest - # infisical/infisical:${{ steps.commit.outputs.short }} - # infisical/infisical:${{ steps.extract_version.outputs.version }} - # platforms: linux/amd64,linux/arm64 - # file: Dockerfile.standalone-infisical - # build-args: | - # POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} - # INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }} - # DD_GIT_REPOSITORY_URL=${{ github.server_url }}/${{ github.repository }} - # DD_GIT_COMMIT_SHA=${{ github.sha }} + - name: ☁️ Checkout source + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: 📦 Install dependencies to test all dependencies + run: npm ci --only-production + working-directory: backend + - name: version output + run: | + echo "Output Value: ${{ steps.version.outputs.major }}" + echo "Output Value: ${{ steps.version.outputs.minor }}" + echo "Output Value: ${{ steps.version.outputs.patch }}" + echo "Output Value: ${{ steps.version.outputs.version }}" + echo "Output Value: ${{ steps.version.outputs.version_type }}" + echo "Output Value: ${{ steps.version.outputs.increment }}" + - name: Save commit hashes for tag + id: commit + uses: pr-mpt/actions-commit-hash@v2 + - name: 🔧 Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: 🐋 Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up Depot CLI + uses: depot/setup-action@v1 + - name: 📦 Build backend and export to Docker + uses: depot/build-push-action@v1 + with: + project: 64mmf0n610 + token: ${{ secrets.DEPOT_PROJECT_TOKEN }} + push: true + context: . + tags: | + infisical/infisical:latest + infisical/infisical:${{ steps.commit.outputs.short }} + infisical/infisical:${{ steps.extract_version.outputs.version }} + platforms: linux/amd64,linux/arm64 + file: Dockerfile.standalone-infisical + build-args: | + POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} + INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }} + DD_GIT_REPOSITORY_URL=${{ github.server_url }}/${{ github.repository }} + DD_GIT_COMMIT_SHA=${{ github.sha }} infisical-fips-standalone: name: Build infisical standalone image postgres runs-on: ubuntu-latest - # needs: [infisical-tests] + needs: [infisical-tests] steps: - name: Extract version from tag id: extract_version run: echo "::set-output name=version::${GITHUB_REF_NAME}" - # - name: ☁️ Checkout source - # uses: actions/checkout@v3 - # with: - # fetch-depth: 0 - # - name: 📦 Install dependencies to test all dependencies - # run: npm ci --only-production - # working-directory: backend - # - name: version output - # run: | - # echo "Output Value: ${{ steps.version.outputs.major }}" - # echo "Output Value: ${{ steps.version.outputs.minor }}" - # echo "Output Value: ${{ steps.version.outputs.patch }}" - # echo "Output Value: ${{ steps.version.outputs.version }}" - # echo "Output Value: ${{ steps.version.outputs.version_type }}" - # echo "Output Value: ${{ steps.version.outputs.increment }}" - # - name: Save commit hashes for tag - # id: commit - # uses: pr-mpt/actions-commit-hash@v2 - # - name: 🔧 Set up Docker Buildx - # uses: docker/setup-buildx-action@v2 - # - name: 🐋 Login to Docker Hub - # uses: docker/login-action@v2 - # with: - # username: ${{ secrets.DOCKERHUB_USERNAME }} - # password: ${{ secrets.DOCKERHUB_TOKEN }} - # - name: Set up Depot CLI - # uses: depot/setup-action@v1 - # - name: 📦 Build backend and export to Docker - # uses: depot/build-push-action@v1 - # with: - # project: 64mmf0n610 - # token: ${{ secrets.DEPOT_PROJECT_TOKEN }} - # push: true - # context: . - # tags: | - # infisical/infisical-fips:latest - # infisical/infisical-fips:${{ steps.commit.outputs.short }} - # infisical/infisical-fips:${{ steps.extract_version.outputs.version }} - # platforms: linux/amd64,linux/arm64 - # file: Dockerfile.fips.standalone-infisical - # build-args: | - # POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} - # INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }} + - name: ☁️ Checkout source + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: 📦 Install dependencies to test all dependencies + run: npm ci --only-production + working-directory: backend + - name: version output + run: | + echo "Output Value: ${{ steps.version.outputs.major }}" + echo "Output Value: ${{ steps.version.outputs.minor }}" + echo "Output Value: ${{ steps.version.outputs.patch }}" + echo "Output Value: ${{ steps.version.outputs.version }}" + echo "Output Value: ${{ steps.version.outputs.version_type }}" + echo "Output Value: ${{ steps.version.outputs.increment }}" + - name: Save commit hashes for tag + id: commit + uses: pr-mpt/actions-commit-hash@v2 + - name: 🔧 Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: 🐋 Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up Depot CLI + uses: depot/setup-action@v1 + - name: 📦 Build backend and export to Docker + uses: depot/build-push-action@v1 + with: + project: 64mmf0n610 + token: ${{ secrets.DEPOT_PROJECT_TOKEN }} + push: true + context: . + tags: | + infisical/infisical-fips:latest + infisical/infisical-fips:${{ steps.commit.outputs.short }} + infisical/infisical-fips:${{ steps.extract_version.outputs.version }} + platforms: linux/amd64,linux/arm64 + file: Dockerfile.fips.standalone-infisical + build-args: | + POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }} + INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }} trigger-binary-release: runs-on: ubuntu-latest needs: [infisical-standalone, infisical-fips-standalone] From 3517ce1085593cf4bbd2a037f6f392edf5e136d2 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sat, 27 Sep 2025 02:46:16 +0400 Subject: [PATCH 9/9] feat: auto trigger binary release --- .../workflows/release-standalone-docker-img-postgres-offical.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index 34b68e8f3..486ff12b2 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -6,7 +6,6 @@ on: - "v*.*.*-nightly-*" - "v*.*.*-nightly-*.*" - jobs: infisical-tests: name: Run tests before deployment