9
9
branches :
10
10
- main
11
11
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number }}
14
+ cancel-in-progress : true
15
+
12
16
env :
13
17
GIT_LFS_SKIP_SMUDGE : 1
14
18
@@ -25,12 +29,12 @@ jobs:
25
29
matrix :
26
30
images :
27
31
- path : " docker/namadillo/Dockerfile"
28
- tag : " namadillo"
32
+ tag : " namadillo-main "
29
33
- path : " docker/faucet/Dockerfile"
30
- tag : " faucet-interface"
34
+ tag : " faucet-interface-main "
31
35
32
36
steps :
33
- - name : Checkout repo
37
+ - name : Checkout repository
34
38
uses : actions/checkout@v4
35
39
- name : Set up QEMU
36
40
uses : docker/setup-qemu-action@v3
@@ -42,12 +46,19 @@ jobs:
42
46
registry : ghcr.io
43
47
username : ${{ github.repository_owner }}
44
48
password : ${{ secrets.GITHUB_TOKEN }}
49
+ - name : Docker meta
50
+ id : meta
51
+ uses : docker/metadata-action@v4
52
+ with :
53
+ images : ghcr.io/${{ github.repository_owner }}/namada-interface
54
+ tags : type=raw,value=${{ matrix.images.tag }}
45
55
- name : Build and Push docker image
46
- uses : docker/build-push-action@v3
56
+ uses : docker/build-push-action@v6
47
57
with :
48
58
context : .
49
59
file : ${{ matrix.images.path }}
50
60
push : ${{ github.ref == 'refs/heads/main' }}
51
- tags : ${{ matrix.images.tag }}-latest, ${{ matrix.images.tag }}-main
61
+ tags : ${{ steps.meta.outputs.tags }}
62
+ labels : ${{ steps.meta.outputs.labels }}
52
63
cache-from : type=gha
53
64
cache-to : type=gha,mode=max
0 commit comments