Refactor binaries workflow #674
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Sign Blockchain Commit Images | |
on: | |
push: | |
branches-ignore: | |
- 'release/[0-9]+.[0-9]+' | |
workflow_dispatch: | |
jobs: | |
build-container-geth-sha: | |
runs-on: [self-hosted, blockchain, 8-cpu] | |
permissions: | |
contents: read | |
id-token: write | |
security-events: write | |
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 | |
with: | |
workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain-dev/providers/github-by-repos' | |
service-account: '[email protected]' | |
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 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth | |
tag: ${{ github.sha }} | |
context: . | |
dockerfile: Dockerfile | |
push: ${{ fromJSON(true) }} | |
load: ${{ fromJSON(false) }} | |
build-container-geth-master: | |
runs-on: [self-hosted, blockchain, 8-cpu] | |
if: github.ref == 'refs/heads/master' | |
permissions: | |
contents: read | |
id-token: write | |
security-events: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login at GCP Artifact Registry | |
uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@1e4de01c8a4c8271b1a9599c72894684386d63cd | |
with: | |
workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain/providers/github-by-repos' | |
service-account: '[email protected]' | |
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 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth | |
tag: master | |
context: . | |
dockerfile: Dockerfile | |
push: ${{ fromJSON(true) }} | |
load: ${{ fromJSON(false) }} | |
build-container-geth-all-master: | |
runs-on: [self-hosted, blockchain, 8-cpu] | |
if: github.ref == 'refs/heads/master' | |
permissions: | |
contents: read | |
id-token: write | |
security-events: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login at GCP Artifact Registry | |
uses: celo-org/reusable-workflows/.github/actions/auth-gcp-artifact-registry@1e4de01c8a4c8271b1a9599c72894684386d63cd | |
with: | |
workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-blockchain/providers/github-by-repos' | |
service-account: '[email protected]' | |
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 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
registry: us-west1-docker.pkg.dev/devopsre/dev-images/geth-all | |
tag: master | |
context: . | |
dockerfile: Dockerfile.alltools | |
push: ${{ fromJSON(true) }} | |
load: ${{ fromJSON(false) }} |