File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
# Checkout push-to-registry action github repository
20
+ - name : Set Calver Date
21
+ run : |
22
+ echo "builddate=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
23
+ id : version
20
24
- name : Checkout Push to Registry action
21
25
uses : actions/checkout@v4
22
26
- name : Set up QEMU
@@ -28,12 +32,12 @@ jobs:
28
32
with :
29
33
registry : ghcr.io
30
34
username : python
31
- password : ${{secrets.GHCR_TOKEN}}
35
+ password : ${{ secrets.GHCR_TOKEN }}
32
36
- name : Build and push
33
37
uses : docker/build-push-action@v5
34
38
with :
35
39
context : ./${{ inputs.package }}
36
40
platforms : linux/amd64,linux/arm64
37
41
push : true
38
42
tags : |
39
- ghcr.io/python/${{ inputs.package }}:latest
43
+ ghcr.io/python/${{ inputs.package }}:${{ steps.version.outputs.builddate }}.${{ github.run_id }}
You can’t perform that action at this time.
0 commit comments