Skip to content

Use org runners for building containers #1121

Use org runners for building containers

Use org runners for building containers #1121

name: Docker Build Push
on:
push:
workflow_dispatch:
permissions:
contents: read
jobs:
build-scan-container-geth:
runs-on: ['self-hosted', 'org', '8-cpu']
permissions:
contents: read
security-events: write
id-token: write
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: linux/amd64,linux/arm64
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
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: linux/amd64,linux/arm64
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') }}