forked from ethereum-optimism/op-geth
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use org runners for building containers (#287)
* Use org runners for building containers * Build linux/arm64 only on celo-release branches
- Loading branch information
1 parent
a102e49
commit 710ed3d
Showing
1 changed file
with
38 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,35 +8,51 @@ permissions: | |
|
||
jobs: | ||
build-scan-container-geth: | ||
runs-on: ['self-hosted', 'org', '8-cpu'] | ||
permissions: | ||
contents: read | ||
security-events: write | ||
id-token: write | ||
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@main | ||
name: Build us-west1-docker.pkg.dev/blockchaintestsglobaltestnet/dev-images/op-geth:${{ github.sha }} | ||
with: | ||
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-op-geth/providers/github-by-repos | ||
service-account: '[email protected]' | ||
artifact-registry: us-west1-docker.pkg.dev/blockchaintestsglobaltestnet/dev-images/op-geth | ||
tags: ${{ github.sha }} | ||
platforms: linux/amd64,linux/arm64 | ||
context: . | ||
file: Dockerfile | ||
trivy: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Login at GCP Artifact Registry | ||
uses: celo-org/reusable-workflows/.github/actions/[email protected] | ||
with: | ||
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-op-geth/providers/github-by-repos | ||
service-account: [email protected] | ||
docker-gcp-registries: us-west1-docker.pkg.dev | ||
- name: Build and push container | ||
uses: celo-org/reusable-workflows/.github/actions/[email protected] | ||
with: | ||
platforms: ${{ startsWith(github.ref, 'refs/heads/celo') && 'linux/amd64,linux/arm64' || 'linux/amd64' }} | ||
registry: us-west1-docker.pkg.dev/blockchaintestsglobaltestnet/dev-images/op-geth | ||
tags: ${{ github.sha }} | ||
context: . | ||
dockerfile: Dockerfile | ||
push: true | ||
trivy: ${{ startsWith(github.ref, 'refs/heads/celo') }} | ||
|
||
build-scan-container-bootnode: | ||
runs-on: ['self-hosted', 'org', '8-cpu'] | ||
permissions: | ||
contents: read | ||
security-events: write | ||
id-token: write | ||
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@main | ||
name: Build us-west1-docker.pkg.dev/blockchaintestsglobaltestnet/dev-images/op-geth-bootnode:${{ github.sha }} | ||
with: | ||
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-op-geth/providers/github-by-repos | ||
service-account: '[email protected]' | ||
artifact-registry: us-west1-docker.pkg.dev/blockchaintestsglobaltestnet/dev-images/op-geth-bootnode | ||
tags: ${{ github.sha }} | ||
platforms: linux/amd64,linux/arm64 | ||
context: . | ||
file: Dockerfile.bootnode | ||
trivy: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Login at GCP Artifact Registry | ||
uses: celo-org/reusable-workflows/.github/actions/[email protected] | ||
with: | ||
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-op-geth/providers/github-by-repos | ||
service-account: [email protected] | ||
docker-gcp-registries: us-west1-docker.pkg.dev | ||
- name: Build and push container | ||
uses: celo-org/reusable-workflows/.github/actions/[email protected] | ||
with: | ||
platforms: ${{ startsWith(github.ref, 'refs/heads/celo') && 'linux/amd64,linux/arm64' || 'linux/amd64' }} | ||
registry: us-west1-docker.pkg.dev/blockchaintestsglobaltestnet/dev-images/op-geth-bootnode | ||
tags: ${{ github.sha }} | ||
context: . | ||
dockerfile: Dockerfile.bootnode | ||
push: true | ||
trivy: ${{ startsWith(github.ref, 'refs/heads/celo') }} |