-
Notifications
You must be signed in to change notification settings - Fork 369
92 lines (85 loc) · 3.42 KB
/
container-circleci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
name: Build CircleCI related containers
on:
push:
paths:
- 'dockerfiles/circleci/**'
branches:
- master
pull_request:
paths:
- 'dockerfiles/circleci/**'
workflow_dispatch:
jobs:
changes:
runs-on: ubuntu-latest
outputs:
geth: ${{ steps.changes.outputs.geth }}
node12: ${{ steps.changes.outputs.node12 }}
gcloud: ${{ steps.changes.outputs.gcloud }}
steps:
- uses: actions/checkout@v3
- name: Check for changes
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
geth:
- dockerfiles/circleci/Dockerfile
- dockerfiles/circleci/.dockerignore
node12:
- dockerfiles/circleci/circleci-node12/Dockerfile
gcloud:
- dockerfiles/circleci/node10-gcloud/Dockerfile
geth-build-dev:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/circleci-geth:testing
needs: changes
if: |
needs.changes.outputs.geth == 'true' &&
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/circleci-geth
tag: testing
context: dockerfiles/circleci
geth-build:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/celo-monorepo/circleci-geth:latest
needs: changes
if: |
needs.changes.outputs.geth == 'true' &&
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/circleci-geth
tag: latest
context: dockerfiles/circleci
node12-build-dev:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/circleci-node12:testing
needs: changes
if: |
needs.changes.outputs.node12 == 'true' &&
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/circleci-node12
tag: testing
context: dockerfiles/circleci
node12-build:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/celo-monorepo/circleci-node12:latest
needs: changes
if: |
needs.changes.outputs.node12 == 'true' &&
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/circleci-node12
tag: latest
context: dockerfiles/circleci