-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (36 loc) · 1.37 KB
/
containers.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
---
name: Build containers
on:
release:
types:
- "published"
jobs:
split-version:
runs-on: ['ubuntu-latest']
# if: |
# contains(github.event.release.name, '@celo/celocli')
outputs:
CELOCLI_VERSION: ${{ steps.split.outputs.CELOCLI_VERSION }}
steps:
- name: Split celocli-version
id: split
shell: bash
run: |
CELOCLI_VERSION="$(${{ github.event.release.name }}##*@)"
echo "CELOCLI_VERSION=$CELOCLI_VERSION" >> $GITHUB_OUTPUT
# CeloCli standalone image
celocli-standalone:
uses: celo-org/reusable-workflows/.github/workflows/[email protected]
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/celocli:${{ needs.split-version.outputs.CELOCLI_VERSION }}
needs: ['split-version']
# if: |
# contains(github.event.release.name, '@celo/celocli')
with:
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-developer-tooling/providers/github-by-repos
service-account: '[email protected]'
artifact-registry: us-west1-docker.pkg.dev/devopsre/developer-tooling/celocli
tags: ${{ needs.split-version.outputs.CELOCLI_VERSION }}
context: .
file: packages/cli/standalone.Dockerfile
build-args: VERSION=${{ needs.split-version.outputs.CELOCLI_VERSION }}
trivy: true