Skip to content

Commit d6e17d5

Browse files
committed
ci: push Docker image with major version tag, too
1 parent 8691115 commit d6e17d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
TAG=$(echo "$VERSION" | cut --characters=2- )
4040
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/plotly-node-export-server/plotly-node-export-server:$TAG
4141
docker tag plotly "$IMAGE_NAME"
42+
TAG_MAJOR=$(echo "$TAG" | cut -d. -f1)
43+
IMAGE_NAME_MAJOR=ghcr.io/${{ github.repository_owner }}/plotly-node-export-server/plotly-node-export-server:$TAG_MAJOR
44+
docker tag plotly "$IMAGE_NAME_MAJOR"
4245
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
4346
docker push "$IMAGE_NAME"
47+
docker push "$IMAGE_NAME_MAJOR"
4448
docker logout ghcr.io

0 commit comments

Comments
 (0)