3333 default : ' '
3434 secrets :
3535 acr-username :
36+ description : ' Username to use when logging into ACR'
3637 required : true
3738 acr-password :
39+ description : ' Password to use when logging into ACR'
3840 required : true
3941 pip-extra-index-url :
42+ description : ' The PIP_EXTRA_INDEX_URL to include as a secret in the docker build. Required to pull private pip packages.'
4043 required : true
4144 outputs :
4245 tag :
@@ -50,14 +53,14 @@ jobs:
5053 tag : ${{ steps.docker.outputs.tag }}
5154 digest : ${{ steps.digest.outputs.digest }}
5255 image : ${{ inputs.images }}
53- clean- tag: ${{ steps.clean-tag.outputs.value }}
56+ tag-prefix : arm64-
5457 steps :
5558 - name : Checkout
5659 uses : actions/checkout@v4
5760
5861 - name : Build and Push docker image (AMD64)
5962 id : docker
60- uses : tignis/docker-github-action@v2.3.1
63+ uses : tignis/docker-github-action@e9179e25c21d4b6b08b8f986b6c3ead15e780a91
6164 with :
6265 images : ${{ inputs.images }}
6366 acr-username : ${{ secrets.acr-username }}
@@ -71,33 +74,21 @@ jobs:
7174 tag-prefix : ' amd64-'
7275 GITHUB_TOKEN : ${{ inputs.GITHUB_TOKEN }}
7376
74- - name : Extract clean tag
75- id : clean-tag
76- run : |
77- TAG=${{ steps.docker.outputs.tag }}
78- CLEAN_TAG=${TAG#*:amd64-}
79- echo "value=${CLEAN_TAG}" >> $GITHUB_OUTPUT
80- shell : bash
81-
82- - name : Get image digest
83- id : digest
84- run : |
85- echo "digest=$(docker inspect ${{ steps.docker.outputs.tag }} --format='{{index .RepoDigests 0}}' | cut -d'@' -f2)" >> $GITHUB_OUTPUT
86- shell : bash
8777
8878 docker-arm64 :
8979 runs-on : [self-hosted, linux, ARM64]
9080 outputs :
9181 tag : ${{ steps.docker.outputs.tag }}
9282 digest : ${{ steps.digest.outputs.digest }}
83+ tag-prefix : arm64-
9384 image : ${{ inputs.images }}
9485 steps :
9586 - name : Checkout
9687 uses : actions/checkout@v4
9788
9889 - name : Build and Push docker image (ARM64)
9990 id : docker
100- uses : tignis/docker-github-action@v2.3.1
91+ uses : tignis/docker-github-action@e9179e25c21d4b6b08b8f986b6c3ead15e780a91
10192 with :
10293 images : ${{ inputs.images }}
10394 acr-username : ${{ secrets.acr-username }}
@@ -111,12 +102,6 @@ jobs:
111102 tag-prefix : ' arm64-'
112103 GITHUB_TOKEN : ${{ inputs.GITHUB_TOKEN }}
113104
114- - name : Get image digest
115- id : digest
116- run : |
117- echo "digest=$(docker inspect ${{ steps.docker.outputs.tag }} --format='{{index .RepoDigests 0}}' | cut -d'@' -f2)" >> $GITHUB_OUTPUT
118- shell : bash
119-
120105 docker-manifest :
121106 needs : [docker-amd64, docker-arm64]
122107 runs-on : ubuntu-latest
0 commit comments