We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e03b7cc commit e945c28Copy full SHA for e945c28
.github/workflows/ci.yml
@@ -91,11 +91,14 @@ jobs:
91
- name: Tag Docker image
92
run: |
93
if [ "${{ github.event_name }}" == "push" ] && [[ "${{ github.ref }}" == refs/tags/v* ]]; then
94
- TAG="${{ github.ref_name }}"
+ TAG="${{ github.ref_name#refs/tags/ }}"
95
else
96
TAG="${{ github.sha }}"
97
fi
98
+ echo "Using tag: $TAG"
99
docker tag ghcr.io/${{ github.repository }}/action:latest ghcr.io/${{ github.repository }}/action:$TAG
100
+ docker push ghcr.io/${{ github.repository }}/action:latest
101
+ docker push ghcr.io/${{ github.repository }}/action:$TAG
102
103
# Push Docker image to GitHub Container Registry
104
- name: Push Docker image
0 commit comments