Skip to content

Commit 04b8805

Browse files
authored
Merge pull request #301 from cmu-delphi/sgratzl/fixtypo
fix pushing image tags
2 parents c4bbfa1 + 0392bda commit 04b8805

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)