Skip to content

Dockerfile including whole monorepo #8

Dockerfile including whole monorepo

Dockerfile including whole monorepo #8

---
name: Build celo-monorepo container
on:
push:
paths:
- 'dockerfiles/all-monorepo/**'
branches:
- master
pull_request:
paths:
- 'dockerfiles/all-monorepo/**'
workflow_dispatch:
jobs:
celomonorepo-build-dev:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/monorepo:${{ github.sha }}
if: |
github.ref != 'refs/heads/master'
with:
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-monorepo/providers/github-by-repos
service-account: '[email protected]'
artifact-registry: us-west1-docker.pkg.dev/devopsre/dev-images/monorepo
tag: ${{ github.sha }}
context: .
file: dockerfiles/all-monorepo/Dockerfile
celomonorepo-build:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/celo-monorepo/monorepo:${{ github.sha }}
if: |
github.ref == 'refs/heads/master'
with:
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-celo-monorepo-master/providers/github-by-repos
service-account: '[email protected]'
artifact-registry: us-west1-docker.pkg.dev/devopsre/celo-monorepo/monorepo
tag: ${{ github.sha }}
context: .
file: dockerfiles/all-monorepo/Dockerfile