-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.2 KB
/
release.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
name: Release
on:
push:
tags:
- '*'
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: ${{ secrets.REGISTRY }}
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.ref_name }}
push: true
tags: |
us-docker.pkg.dev/moonrhythm-containers/gcr.io/tirev:${{ github.ref_name }}
us-docker.pkg.dev/moonrhythm-containers/gcr.io/tirev:latest
${{ secrets.REGISTRY }}/tirev:${{ github.ref_name }}
${{ secrets.REGISTRY }}/tirev:latest