-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (50 loc) · 1.51 KB
/
build.yaml
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
name: Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- uses: google-github-actions/auth@v1
id: auth
with:
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
token_format: access_token
- uses: docker/login-action@v2
with:
registry: us-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}
- uses: docker/login-action@v2
with:
registry: registry.moonrhythm.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- uses: docker/setup-buildx-action@v2
with:
version: latest
platforms: linux/amd64
- uses: docker/build-push-action@v4
with:
provenance: false
build-args: |
VERSION=${{ github.sha }}
GOAMD64=v3
push: true
tags: |
us-docker.pkg.dev/moonrhythm-containers/gcr.io/parapet-ingress-controller:${{ github.sha }}
registry.moonrhythm.io/parapet-ingress-controller:${{ github.sha }}
- uses: docker/build-push-action@v4
with:
provenance: false
build-args: |
VERSION=${{ github.sha }}
GOAMD64=v1
push: true
tags: |
us-docker.pkg.dev/moonrhythm-containers/gcr.io/parapet-ingress-controller:${{ github.sha }}-amd64v1
registry.moonrhythm.io/parapet-ingress-controller:${{ github.sha }}-amd64v1