mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-10-12 16:59:58 +02:00
Remove ref/tags from version
This commit is contained in:
2
build.sh
2
build.sh
@@ -16,7 +16,7 @@ cd "$VERSION_SHORT" || exit 1
|
|||||||
VERSION=$(grep -oP '[0-9]+\.[0-9]+\.[0-9]+' Dockerfile | head -1)
|
VERSION=$(grep -oP '[0-9]+\.[0-9]+\.[0-9]+' Dockerfile | head -1)
|
||||||
DOCKER_REPO=factoriotools/factorio
|
DOCKER_REPO=factoriotools/factorio
|
||||||
|
|
||||||
BRANCH=${GITHUB_REF#refs/heads/}
|
BRANCH=${GITHUB_REF#refs/*/}
|
||||||
|
|
||||||
if [[ -n ${GITHUB_BASE_REF:-} ]]; then
|
if [[ -n ${GITHUB_BASE_REF:-} ]]; then
|
||||||
TAGS="$DOCKER_REPO:$GITHUB_BASE_REF"
|
TAGS="$DOCKER_REPO:$GITHUB_BASE_REF"
|
||||||
|
Reference in New Issue
Block a user