diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 80770c01..9e36ac5d 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -172,9 +172,15 @@ jobs: exit 1 fi + if [[ "${VERSION}" =~ (alpha|beta|rc) ]]; then + FLOATING_TAG="beta" + else + FLOATING_TAG="latest" + fi + docker buildx imagetools create \ -t "${IMAGE}:${VERSION}" \ - -t "${IMAGE}:latest" \ + -t "${IMAGE}:${FLOATING_TAG}" \ "${references[@]}" - name: Inspect image @@ -335,9 +341,15 @@ jobs: exit 1 fi + if [[ "${VERSION}" =~ (alpha|beta|rc) ]]; then + FLOATING_TAG="beta" + else + FLOATING_TAG="latest" + fi + docker buildx imagetools create \ -t "${IMAGE}:${VERSION}" \ - -t "${IMAGE}:latest" \ + -t "${IMAGE}:${FLOATING_TAG}" \ "${references[@]}" - name: Inspect image