@@ -38,13 +38,13 @@ jobs:
38
38
username : ${{ github.repository_owner }}
39
39
password : ${{ secrets.GH_TOKEN }}
40
40
41
- - name : Build Meta
41
+ - name : Build Nightly Meta
42
42
run : |
43
- echo "::set-output name=dtag:: ghcr.io/barelyhuman/goblin:nightly-${{ steps.date.outputs.date }}"
43
+ echo "DEVELOPMENT_TAG= ghcr.io/barelyhuman/goblin:nightly-${{ steps.date.outputs.date }}" >> $GITHUB_ENV
44
44
45
45
- name : Build Release Meta
46
46
run : |
47
- echo "::set-output name=rtag:: ghcr.io/barelyhuman/goblin:${{ github.ref_name }}"
47
+ echo "RELEASE_TAG= ghcr.io/barelyhuman/goblin:${{ github.ref_name }}" >> $GITHUB_ENV
48
48
if : github.ref_type == 'tag'
49
49
50
50
- name : Build and push nightly
@@ -59,12 +59,12 @@ jobs:
59
59
file : Dockerfile
60
60
platforms : linux/amd64,linux/arm64
61
61
push : true
62
- tags : ${{ steps.meta.outputs.dtag }}
62
+ tags : ${{ env.DEVELOPMENT_TAG }}
63
63
64
64
- name : Build and push nightly
65
65
if : github.ref_type == 'tag'
66
66
uses : docker/build-push-action@v5
67
- id : push
67
+ id : pushRelease
68
68
env :
69
69
REGISTRY : ghcr.io
70
70
OWNER : ${{ github.repository_owner }}
@@ -74,11 +74,19 @@ jobs:
74
74
file : Dockerfile
75
75
platforms : linux/amd64,linux/arm64
76
76
push : true
77
- tags : ${{ steps.meta.outputs.rtag }}
77
+ tags : ${{ env.RELEASE_TAG }}
78
78
79
79
- name : Generate artifact attestation
80
80
uses : actions/attest-build-provenance@v1
81
81
with :
82
82
subject-name : ghcr.io/barelyhuman/goblin
83
83
subject-digest : ${{ steps.push.outputs.digest }}
84
84
push-to-registry : true
85
+
86
+ - name : Generate artifact attestation
87
+ if : github.ref_type == 'tag'
88
+ uses : actions/attest-build-provenance@v1
89
+ with :
90
+ subject-name : ghcr.io/barelyhuman/goblin
91
+ subject-digest : ${{ steps.pushRelease.outputs.digest }}
92
+ push-to-registry : true
0 commit comments