mark image for stable appropriately in CI

This commit is contained in:
Georg Lauterbach 2021-01-16 12:06:40 +01:00
parent 189e5376cc
commit 614fbb4983
No known key found for this signature in database
GPG key ID: 2FDC58699AF121C6

View file

@ -80,6 +80,7 @@ jobs:
DOCKER_IMAGE=docker.io/mailserver/docker-mailserver
VERSION=latest
[[ $GITHUB_REF == refs/tags/* ]] && VERSION=${GITHUB_REF#refs/tags/v}
[[ $GITHUB_REF == 'refs/heads/stable' ]] && VERSION=stable
TAGS="${DOCKER_IMAGE}:${VERSION}"
[[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]] && TAGS="$TAGS,${DOCKER_IMAGE}:latest"
echo ::set-output name=tags::${TAGS}