The personal finance app for everyone (by everyone)
Ruby
Tag latest image on release (#162)
Juan José Mataed99a4dcabee
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex cc7427dec5..a2de970932 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -86,9 +86,16 @@ jobs:if [[ $GITHUB_EVENT_NAME == "schedule" ]]; thenBASE_CONFIG+=$'\n'"type=schedule,pattern=nightly"BASE_CONFIG+=$'\n'"type=schedule,pattern=nightly-{{date 'ddd'}}"- elif [[ "$GITHUB_REF" == refs/tags/v* ]]; then- BASE_CONFIG="type=semver,pattern={{version}}"- BASE_CONFIG+=$'\n'"type=raw,value=stable"+ elif [[ "$GITHUB_REF" == refs/tags/* ]]; then+ TAG_NAME="${GITHUB_REF#refs/tags/}"+ if [[ "$TAG_NAME" == v* ]]; then+ BASE_CONFIG="type=semver,pattern={{version}}"+ if [[ "$TAG_NAME" == v*-alpha* ]]; then+ BASE_CONFIG+=$'\n'"type=raw,value=latest"+ else+ BASE_CONFIG+=$'\n'"type=raw,value=stable"+ fi+ fifi{echo 'TAGS_SPEC<<EOF'