File tree 1 file changed +12
-3
lines changed 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Docker Pub
2
2
3
- on : workflow_dispatch
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ - cron : " 0 0 * * *"
4
7
5
8
jobs :
6
9
build :
10
13
contents : read
11
14
packages : write
12
15
attestations : write
16
+ id-token : write
17
+
13
18
steps :
14
19
- name : Checkout the repository
15
20
uses : actions/checkout@v4
21
+
22
+ - name : Get current date
23
+ id : date
24
+ run : echo "::set-output name=date::$(date +'%Y%m%d')"
16
25
17
26
- name : Set up QEMU
18
27
uses : docker/setup-qemu-action@v3
27
36
password : ${{ secrets.GH_TOKEN }}
28
37
29
38
- name : Build Meta
30
- run : echo "::set-output name=dtag::ghcr.io/barelyhuman/goblin:nightly"
39
+ run : echo "::set-output name=dtag::ghcr.io/barelyhuman/goblin:nightly-${{ steps.date.outputs.date }} "
31
40
id : meta
32
41
33
42
- name : Build and push
47
56
- name : Generate artifact attestation
48
57
uses : actions/attest-build-provenance@v1
49
58
with :
50
- subject-name : ghcr.io/barelyhuman/goblin:nightly
59
+ subject-name : ghcr.io/barelyhuman/goblin
51
60
subject-digest : ${{ steps.push.outputs.digest }}
52
61
push-to-registry : true
You can’t perform that action at this time.
0 commit comments