From 6b185f00ee6c3bffadd604f37c121c2056b920e4 Mon Sep 17 00:00:00 2001 From: Daniel Rataj Date: Wed, 11 Nov 2020 16:20:06 +0100 Subject: [PATCH] Update CI --- .github/workflows/publish.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b3035d9..1bfc6a5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,10 +2,6 @@ name: Create a container on: push: - # Publish `master` as Docker `latest` image. - branches: - - master - # Publish `v1.2.3` tags as releases. tags: - v* @@ -36,8 +32,8 @@ jobs: # Strip "v" prefix from tag name [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') - # Use Docker `latest` tag convention - [ "$VERSION" == "master" ] && VERSION=latest + # keep only the major.minor release, no patch + [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/\.[0-9]*$//') echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION