Skip to content

Release 1.8.0

Release 1.8.0 #1

name: Build and Sign Blockchain Release Images
on:
push:
branches:
- 'release/[0-9]+.[0-9]+'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
Replace-Branch-Name:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
replaced-branch: ${{ steps.replace.outputs.value }}
if: startsWith(github.ref, 'refs/heads/release')
steps:
- id: replace
run: |
branch_name=$(echo ${{ github.ref_name }} | sed 's/\///' )
echo "value=${branch_name}" >> $GITHUB_OUTPUT
Replace-Tag-V:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
replaced-tag: ${{ steps.replace.outputs.value }}
major: ${{ steps.major-minor.outputs.MAJOR }}
major-minor: ${{ steps.major-minor.outputs.MAJOR_MINOR }}
if: startsWith(github.ref, 'refs/tags/v')
steps:
- id: replace
run: |
version=$(echo ${{ github.ref_name }} | sed 's/^v//' )
echo "value=${version}" >> $GITHUB_OUTPUT
- id: major-minor
run: |
version=${{ steps.replace.outputs.value }}
semver=( ${version//./ } )
echo "MAJOR=${semver[0]}" >> $GITHUB_OUTPUT
echo "MAJOR_MINOR=${semver[0]}.${semver[1]}" >> $GITHUB_OUTPUT
Build-Container-geth-dev:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.8
if: startsWith(github.ref, 'refs/heads/release')
needs:
- Replace-Branch-Name
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
tag: ${{needs.Replace-Branch-Name.outputs.replaced-branch}}
context: .
Build-Container-geth-all-dev:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.8
if: startsWith(github.ref, 'refs/heads/release')
needs:
- Replace-Branch-Name
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-all
tag: ${{needs.Replace-Branch-Name.outputs.replaced-branch}}
context: .
file: Dockerfile.alltools
Build-Container-geth-devopsre:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.8
if: startsWith(github.ref, 'refs/tags/v')
needs:
- Replace-Tag-V
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
tag: ${{needs.Replace-Tag-V.outputs.replaced-tag}}
context: .
Build-Container-geth-all-devopsre:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.8
if: startsWith(github.ref, 'refs/tags/v')
needs:
- Replace-Tag-V
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
tag: ${{needs.Replace-Tag-V.outputs.replaced-tag}}
context: .
file: Dockerfile.alltools
Build-Container-geth-celo-org:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.8
if: startsWith(github.ref, 'refs/tags/v')
needs:
- Replace-Tag-V
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-docker.pkg.dev/celo-org/us.gcr.io/geth
tag: ${{needs.Replace-Tag-V.outputs.replaced-tag}}
context: .
Build-Container-geth-all-celo-org:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.8
if: startsWith(github.ref, 'refs/tags/v')
needs:
- Replace-Tag-V
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-docker.pkg.dev/celo-org/us.gcr.io/geth-all
tag: ${{needs.Replace-Tag-V.outputs.replaced-tag}}
context: .
file: Dockerfile.alltools
Add-Baklava-tag:
if: startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/add-docker-tag.yaml
needs:
- Replace-Tag-V
- Build-Container-devopsre

Check failure on line 124 in .github/workflows/build-sign-release-images.yaml

View workflow run for this annotation

GitHub Actions / Build and Sign Blockchain Release Images

Invalid workflow file

The workflow is not valid. .github/workflows/build-sign-release-images.yaml (Line: 124, Col: 9): Job 'Add-Baklava-tag' depends on unknown job 'Build-Container-devopsre'. .github/workflows/build-sign-release-images.yaml (Line: 125, Col: 9): Job 'Add-Baklava-tag' depends on unknown job 'Build-Container-all-devopsre'.
- Build-Container-all-devopsre
- Build-Container-celo-org
- Build-Container-all-celo-org
with:
origin-tag: ${{needs.Replace-Tag-V.outputs.replaced-tag}}
destination-tag: baklava
Add-Major-tag:
if: startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/add-docker-tag.yaml
needs:
- Replace-Tag-V
- Build-Container-devopsre
- Build-Container-all-devopsre
- Build-Container-celo-org
- Build-Container-all-celo-org
with:
origin-tag: ${{needs.Replace-Tag-V.outputs.replaced-tag}}
destination-tag: ${{needs.Replace-Tag-V.outputs.major}}
Add-Major-Minor-tag:
if: startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/add-docker-tag.yaml
needs:
- Replace-Tag-V
- Build-Container-devopsre
- Build-Container-all-devopsre
- Build-Container-celo-org
- Build-Container-all-celo-org
with:
origin-tag: ${{needs.Replace-Tag-V.outputs.replaced-tag}}
destination-tag: ${{needs.Replace-Tag-V.outputs.major-minor}}