Skip to content

Commit 67f5e47

Browse files
committed
Updates to build and publish github action
1 parent 7ae19cb commit 67f5e47

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

.github/workflows/ci.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,8 @@ jobs:
8787
- name: Build Docker image
8888
run: docker build -t ghcr.io/${{ github.repository }}/action:latest .
8989

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-
10390
# Push Docker image to GitHub Container Registry
10491
- name: Push Docker image
10592
run: |
10693
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

0 commit comments

Comments
 (0)