-
Notifications
You must be signed in to change notification settings - Fork 8
63 lines (59 loc) · 2.31 KB
/
odis-loadtest-container.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
---
name: Build ODIS loadtest image
on:
push:
paths:
- 'dockerfiles/Dockerfile-loadtest'
- 'apps/monitor/**'
- 'yarn.lock'
branches:
- main
- 'prerelease/*'
tags:
- odis-loadtest-.*
pull_request:
paths:
- 'dockerfiles/Dockerfile-loadtest'
- 'apps/monitor/**'
- 'yarn.lock'
workflow_dispatch:
jobs:
odis-loadtest-build-dev:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/odis-loadtest
if: |
github.ref != 'refs/heads/main'
with:
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-social-connect/providers/github-by-repos
service-account: '[email protected]'
artifact-registry: us-west1-docker.pkg.dev/devopsre/dev-images/odis-loadtest
tags: ${{ github.sha }}
context: .
file: dockerfiles/Dockerfile-loadtest
trivy: true
odis-loadtest-build:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/social-connect/odis-loadtest
if: |
github.ref == 'refs/heads/main'
with:
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-social-connect-main/providers/github-by-repos
service-account: '[email protected]'
artifact-registry: us-west1-docker.pkg.dev/devopsre/social-connect/odis-loadtest
tags: ${{ github.sha }}
context: .
file: dockerfiles/Dockerfile-loadtest
trivy: true
odis-loadtest-tag:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/social-connect/odis-loadtest tag
if: |
startsWith(github.ref, 'refs/tags/odis-loadtest-')
with:
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-social-connect-tag/providers/github-by-repos
service-account: '[email protected]'
artifact-registry: us-west1-docker.pkg.dev/devopsre/social-connect/odis-loadtest
tags: ${{ github.ref_name }}
context: .
file: dockerfiles/phone-number-privacy/Dockerfile-loadtest
trivy: true