File tree 1 file changed +1
-14
lines changed
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 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
91
- - name : Tag Docker image
92
- run : |
93
- if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
94
- TAG="${GITHUB_REF#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
90
# Push Docker image to GitHub Container Registry
104
91
- name : Push Docker image
105
92
run : |
106
93
docker push ghcr.io/${{ github.repository }}/action:latest
107
- docker push ghcr.io/${{ github.repository }}/action:$TAG
94
+ # docker push ghcr.io/${{ github.repository }}/action:$TAG
You can’t perform that action at this time.
0 commit comments