-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.22 KB
/
02-release.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
---
name: Package approbation image
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and export to local Docker
uses: docker/build-push-action@v3
with:
push: false
load: true
tags: vegaprotocol/approbation:local
- name: Sanity check docker image
run: |
docker run --rm vegaprotocol/approbation:local version || docker run --rm vegaprotocol/approbation:local
- name: Build and push to GitHub Docker registry
id: docker_build
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: |
ghcr.io/vegaprotocol/approbation:latest
ghcr.io/vegaprotocol/approbation:${{github.ref_name}}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}