mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
mark image for stable appropriately in CI
This commit is contained in:
parent
189e5376cc
commit
614fbb4983
1
.github/workflows/default_on_push.yml
vendored
1
.github/workflows/default_on_push.yml
vendored
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue