We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18004f5 commit d6c54d5Copy full SHA for d6c54d5
.github/workflows/docker-pub.yml
@@ -1,6 +1,9 @@
1
name: Docker Pub
2
3
-on: workflow_dispatch
+on:
4
+ - workflow_dispatch
5
+ - schedule:
6
+ - cron: "0 0 * * *"
7
8
jobs:
9
build:
@@ -10,9 +13,15 @@ jobs:
10
13
contents: read
11
14
packages: write
12
15
attestations: write
16
+ id-token: write
17
+
18
steps:
19
- name: Checkout the repository
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')"
25
26
- name: Set up QEMU
27
uses: docker/setup-qemu-action@v3
@@ -47,6 +56,6 @@ jobs:
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:nightly-${{ steps.date.outputs.date }}
51
60
subject-digest: ${{ steps.push.outputs.digest }}
52
61
push-to-registry: true
0 commit comments