diff --git a/.github/workflows/publish-image-debian.yaml b/.github/workflows/publish-image-debian.yaml index 20fa057..819d826 100644 --- a/.github/workflows/publish-image-debian.yaml +++ b/.github/workflows/publish-image-debian.yaml @@ -23,6 +23,8 @@ jobs: VERSION=edge if [[ $GITHUB_REF == refs/tags/* ]]; then VERSION=${GITHUB_REF#refs/tags/} + # Remove -o or -d suffix if present + VERSION=${VERSION%-*} fi MAJOR="$(echo "${VERSION}" | cut -d. -f1)" MINOR="$(echo "${VERSION}" | cut -d. -f2)"