File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Build Python Version
2+
13on :
24 workflow_call :
35 inputs :
@@ -29,12 +31,18 @@ jobs:
2931 username : ${{ github.repository_owner }}
3032 password : ${{ secrets.GITHUB_TOKEN }}
3133
34+ - name : Get Git commit short SHA
35+ id : git-sha
36+ run : echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
37+
3238 - name : Build and push Docker image
3339 uses : docker/build-push-action@v6
3440 with :
3541 context : .
3642 file : ./Dockerfile
3743 push : true
38- tags : ghcr.io/python-discord/python-builds:${{ inputs.tag }}
44+ tags : |
45+ ghcr.io/python-discord/python-builds:${{ inputs.tag }}
46+ ghcr.io/python-discord/python-builds:${{ inputs.tag }}-${{ steps.git-sha.outputs.sha }}
3947 build-args : |
4048 PYTHON_VERSION=${{ inputs.version }}
You can’t perform that action at this time.
0 commit comments