File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -87,19 +87,20 @@ jobs:
87
87
- name : Build Docker image
88
88
run : docker build -t ghcr.io/${{ github.repository }}/action:latest .
89
89
90
- # Tag the Docker image with the GitHub tag or commit SHA
90
+ # Tag the Docker image with the GitHub tag or commit SHA
91
91
- name : Tag Docker image
92
92
run : |
93
- if [[ "${{ github.ref }}" == refs/tags/v * ]]; then
94
- TAG="${{ github.ref#refs/tags/ }}"
93
+ if [[ "${{ github.ref }}" == refs/tags/* ]]; then
94
+ TAG="${{ github.ref## refs/tags/ }}"
95
95
else
96
96
TAG="${{ github.sha }}"
97
97
fi
98
98
echo "Using tag: $TAG"
99
99
docker tag ghcr.io/${{ github.repository }}/action:latest ghcr.io/${{ github.repository }}/action:$TAG
100
100
docker push ghcr.io/${{ github.repository }}/action:latest
101
101
docker push ghcr.io/${{ github.repository }}/action:$TAG
102
-
102
+
103
+
103
104
104
105
# Push Docker image to GitHub Container Registry
105
106
- name : Push Docker image
You can’t perform that action at this time.
0 commit comments