From f8dc509a4b78c074e89e1b645025f22dd2d08f95 Mon Sep 17 00:00:00 2001 From: Javier Cortejoso Date: Thu, 26 Oct 2023 15:19:37 +0200 Subject: [PATCH] Update container ci-cd workflow to latest tag --- .github/workflows/build-sign-binaries.yaml | 2 +- .../workflows/build-sign-commit-images.yaml | 14 +++++++------- .../workflows/build-sign-release-images.yaml | 19 +++++++------------ 3 files changed, 15 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-sign-binaries.yaml b/.github/workflows/build-sign-binaries.yaml index 8697115e35..6586f247be 100644 --- a/.github/workflows/build-sign-binaries.yaml +++ b/.github/workflows/build-sign-binaries.yaml @@ -9,7 +9,7 @@ on: jobs: build-container-blockchain-binaries: - uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@1e4de01c8a4c8271b1a9599c72894684386d63cd + uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.12.3 with: workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain/providers/github-by-repos' service-account: 'celo-blockchain@devopsre.iam.gserviceaccount.com' diff --git a/.github/workflows/build-sign-commit-images.yaml b/.github/workflows/build-sign-commit-images.yaml index a9c843b4b0..ba9414d75a 100644 --- a/.github/workflows/build-sign-commit-images.yaml +++ b/.github/workflows/build-sign-commit-images.yaml @@ -16,14 +16,14 @@ jobs: steps: - uses: actions/checkout@v3 - name: Login at GCP Artifact Registry - # 1e4de01c8a4c8271b1a9599c72894684386d63cd is main at Sep 28, 2023 - uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@1e4de01c8a4c8271b1a9599c72894684386d63cd + # v1.12.3 is main at Oct 26, 2023 + uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@v1.12.3 with: workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain-dev/providers/github-by-repos' service-account: 'celo-blockchain-dev@devopsre.iam.gserviceaccount.com' artifact-registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth - name: Build and push container - uses: celo-org/reusable-workflows/.github/actions/build-container@1e4de01c8a4c8271b1a9599c72894684386d63cd + uses: celo-org/reusable-workflows/.github/actions/build-container@v1.12.3 with: platforms: linux/amd64,linux/arm64 registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth @@ -43,13 +43,13 @@ jobs: steps: - uses: actions/checkout@v3 - name: Login at GCP Artifact Registry - uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@1e4de01c8a4c8271b1a9599c72894684386d63cd + uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@v1.12.3 with: workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain/providers/github-by-repos' service-account: 'celo-blockchain@devopsre.iam.gserviceaccount.com' artifact-registry: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/geth - name: Build and push container - uses: celo-org/reusable-workflows/.github/actions/build-container@1e4de01c8a4c8271b1a9599c72894684386d63cd + uses: celo-org/reusable-workflows/.github/actions/build-container@v1.12.3 with: platforms: linux/amd64,linux/arm64 registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth @@ -69,13 +69,13 @@ jobs: steps: - uses: actions/checkout@v3 - name: Login at GCP Artifact Registry - uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@1e4de01c8a4c8271b1a9599c72894684386d63cd + uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@v1.12.3 with: workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain/providers/github-by-repos' service-account: 'celo-blockchain@devopsre.iam.gserviceaccount.com' artifact-registry: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/geth-all - name: Build and push container - uses: celo-org/reusable-workflows/.github/actions/build-container@1e4de01c8a4c8271b1a9599c72894684386d63cd + uses: celo-org/reusable-workflows/.github/actions/build-container@v1.12.3 with: platforms: linux/amd64,linux/arm64 registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth-all diff --git a/.github/workflows/build-sign-release-images.yaml b/.github/workflows/build-sign-release-images.yaml index cb31d0effe..98a493a821 100644 --- a/.github/workflows/build-sign-release-images.yaml +++ b/.github/workflows/build-sign-release-images.yaml @@ -53,8 +53,8 @@ jobs: echo "MAJOR_MINOR=${semver[0]}.${semver[1]}" >> $GITHUB_OUTPUT build-container-geth-dev: - # 7b956940a337e987289a6788c5a562a3e1e5c2ab is main at Oct 25th 2023 - uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@7b956940a337e987289a6788c5a562a3e1e5c2ab + # v1.12.3 is main at Oct 25th 2023 + uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.12.3 if: startsWith(github.ref, 'refs/heads/release') needs: - replace-branch-name @@ -70,8 +70,7 @@ jobs: build-container-geth-all-dev: - # 7b956940a337e987289a6788c5a562a3e1e5c2ab is main at Oct 25th 2023 - uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@7b956940a337e987289a6788c5a562a3e1e5c2ab + uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.12.3 if: startsWith(github.ref, 'refs/heads/release') needs: - replace-branch-name @@ -86,8 +85,7 @@ jobs: trivy: true build-container-geth-devopsre: - # 7b956940a337e987289a6788c5a562a3e1e5c2ab is main at Oct 25th 2023 - uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@7b956940a337e987289a6788c5a562a3e1e5c2ab + uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.12.3 if: startsWith(github.ref, 'refs/tags/v') && false needs: - replace-tag-v @@ -102,8 +100,7 @@ jobs: trivy: true build-container-geth-all-devopsre: - # 7b956940a337e987289a6788c5a562a3e1e5c2ab is main at Oct 25th 2023 - uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@7b956940a337e987289a6788c5a562a3e1e5c2ab + uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.12.3 if: startsWith(github.ref, 'refs/tags/v') && false needs: - replace-tag-v @@ -118,8 +115,7 @@ jobs: trivy: true build-container-geth-celo-org: - # 7b956940a337e987289a6788c5a562a3e1e5c2ab is main at Oct 25th 2023 - uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@7b956940a337e987289a6788c5a562a3e1e5c2ab + uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.12.3 if: startsWith(github.ref, 'refs/tags/v') needs: - replace-tag-v @@ -134,8 +130,7 @@ jobs: trivy: true build-container-geth-all-celo-org: - # 7b956940a337e987289a6788c5a562a3e1e5c2ab is main at Oct 25th 2023 - uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@7b956940a337e987289a6788c5a562a3e1e5c2ab + uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.12.3 if: startsWith(github.ref, 'refs/tags/v') needs: - replace-tag-v