File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 11name : " Build & Push EVM Gateway Image to Public Repo"
22
33on :
4- push :
5- tags :
6- - ' *'
74 workflow_dispatch :
5+ inputs :
6+ tag :
7+ description : ' Git tag to build. Also used as the docker image tag.'
8+ required : true
9+ type : string
810
911env :
1012 DOCKER_IMAGE_URL : ${{ vars.REPO_DOCKER_IMAGE_URL }}
2022 with :
2123 fetch-depth : 0
2224 fetch-tags : true
23-
24- - name : Set Gateway Version
25- id : set_version
26- run : echo "GATEWAY_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo 'unknown')" >> $GITHUB_OUTPUT
25+ ref : ${{ inputs.tag }}
2726
2827 - name : Google auth
2928 id : auth
4140 - name : Docker Auth
4241 run : |-
4342 gcloud auth configure-docker ${{ vars.GAR_LOCATION }}-docker.pkg.dev
44- docker build --build-arg VERSION="${{ steps.set_version.outputs.GATEWAY_VERSION }}" --build-arg ARCH=amd64 -t ${{ env.DOCKER_IMAGE_URL }}:${{ steps.set_version.outputs.GATEWAY_VERSION }} --file Dockerfile .
45- docker push ${{ env.DOCKER_IMAGE_URL }}:${{ steps.set_version.outputs.GATEWAY_VERSION }}
43+ docker build --build-arg VERSION="${{ inputs.tag }}" --build-arg ARCH=amd64 -t ${{ env.DOCKER_IMAGE_URL }}:${{ inputs.tag }} --file Dockerfile .
44+ docker push ${{ env.DOCKER_IMAGE_URL }}:${{ inputs.tag }}
You can’t perform that action at this time.
0 commit comments