Remove ref/tags from version

This commit is contained in:
Sandro Jäckel 2021-01-27 23:55:45 +01:00
parent 846e102ac8
commit 018269377a
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -16,7 +16,7 @@ cd "$VERSION_SHORT" || exit 1
VERSION=$(grep -oP '[0-9]+\.[0-9]+\.[0-9]+' Dockerfile | head -1)
DOCKER_REPO=factoriotools/factorio
BRANCH=${GITHUB_REF#refs/heads/}
BRANCH=${GITHUB_REF#refs/*/}
if [[ -n ${GITHUB_BASE_REF:-} ]]; then
TAGS="$DOCKER_REPO:$GITHUB_BASE_REF"