File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1717 runs-on : ubuntu-latest
1818 steps :
1919 # 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
2024 - name : Checkout Push to Registry action
2125 uses : actions/checkout@v4
2226 - name : Set up QEMU
@@ -28,12 +32,12 @@ jobs:
2832 with :
2933 registry : ghcr.io
3034 username : python
31- password : ${{secrets.GHCR_TOKEN}}
35+ password : ${{ secrets.GHCR_TOKEN }}
3236 - name : Build and push
3337 uses : docker/build-push-action@v5
3438 with :
3539 context : ./${{ inputs.package }}
3640 platforms : linux/amd64,linux/arm64
3741 push : true
3842 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