File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -61,23 +61,22 @@ jobs:
6161 echo "::set-output name=tag::$imageTag"
6262 echo "::set-output name=repo::ghcr.io/${{ github.repository }}"
6363 - name : Push Dev Tag
64- if : startsWith(github.ref, 'refs/heads/dev')
6564 run : |
6665 docker tag repo ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
6766 docker push ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
6867 - name : Extract version
6968 if : startsWith(github.ref, 'refs/heads/main')
7069 id : extract_version
7170 run : node -pe "'::set-output name=version::' + require('./package.json').version"
72- - name : Push Version Tag Tag
73- if : startsWith(github.ref, 'refs/heads/main')
74- run : |
75- docker tag repo ${{ steps.tagname.outputs.repo }}:v{{ steps.extract_version.outputs.version }}
76- docker push ${{ steps.tagname.outputs.repo }}:v{{ steps.extract_version.outputs.version }}
7771 - name : Trigger Webhook
7872 run : |
7973 # trigger a webhook update
8074 curl -H "Authorization: Bearer ${{ secrets.DELPHI_DEPLOY_WEBHOOK_TOKEN }}" \
8175 -X POST ${{ secrets.DELPHI_DEPLOY_WEBHOOK_URL }} \
8276 -H "Content-Type: application/x-www-form-urlencoded" \
8377 -d "repository=${{ steps.tagname.outputs.repo }}&tag=${{ steps.tagname.outputs.tag }}"
78+ - name : Push Version Tag Tag
79+ if : startsWith(github.ref, 'refs/heads/main')
80+ run : |
81+ docker tag repo ${{ steps.tagname.outputs.repo }}:v${{ steps.extract_version.outputs.version }}
82+ docker push ${{ steps.tagname.outputs.repo }}:v${{ steps.extract_version.outputs.version }}
You can’t perform that action at this time.
0 commit comments