File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ 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.event_name }}" == "push" ] && [ [ "${{ github.ref }}" == refs/tags/v* ]]; then
94
- TAG="${{ github.ref_name #refs/tags/ }}"
93
+ if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
94
+ TAG="${{ github.ref #refs/tags/ }}"
95
95
else
96
96
TAG="${{ github.sha }}"
97
97
fi
@@ -100,6 +100,7 @@ jobs:
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
# Push Docker image to GitHub Container Registry
104
105
- name : Push Docker image
105
106
run : |
You can’t perform that action at this time.
0 commit comments