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 99c66e1 commit e84384eCopy full SHA for e84384e
1 file changed
.github/workflows/build-version.yml
@@ -1,3 +1,5 @@
1
+name: Build Python Version
2
+
3
on:
4
workflow_call:
5
inputs:
@@ -29,12 +31,18 @@ jobs:
29
31
username: ${{ github.repository_owner }}
30
32
password: ${{ secrets.GITHUB_TOKEN }}
33
34
+ - name: Get Git commit short SHA
35
+ id: git-sha
36
+ run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
37
38
- name: Build and push Docker image
39
uses: docker/build-push-action@v6
40
with:
41
context: .
42
file: ./Dockerfile
43
push: true
- 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 }}
47
build-args: |
48
PYTHON_VERSION=${{ inputs.version }}
0 commit comments