File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Build Docker Image
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ tag :
7+ description : Tag for this image
8+ default : ' '
59 release :
610 types : [published]
711 push :
1418
1519jobs :
1620 build :
17- runs-on : ubuntu-latest
1821 strategy :
1922 fail-fast : false
2023 matrix :
21- platform :
22- - linux/amd64
23- - linux/arm64
24+ include :
25+ - platform : linux/amd64
26+ runner : ubuntu-latest
27+ - platform : linux/arm64
28+ runner : ubuntu-24.04-arm
29+ runs-on : ${{ matrix.runner }}
2430 steps :
2531 - name : Prepare
2632 run : |
@@ -100,6 +106,7 @@ jobs:
100106 images : |
101107 ${{ env.GITHUB_CR_REPO }}
102108 tags : |
109+ type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }}
103110 type=ref,event=branch
104111 type=ref,event=pr
105112 type=semver,pattern={{version}}
@@ -122,4 +129,4 @@ jobs:
122129
123130 - name : Inspect image
124131 run : |
125- docker buildx imagetools inspect ${{ env.GITHUB_CR_REPO }}:${{ env.DOCKER_METADATA_OUTPUT_VERSION }}
132+ docker buildx imagetools inspect ${{ env.GITHUB_CR_REPO }}:${{ env.DOCKER_METADATA_OUTPUT_VERSION }}
You can’t perform that action at this time.
0 commit comments