mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-03 14:57:22 +03:00
Fixed docker build script so that it can work with develop branch
This commit is contained in:
parent
6b338275d3
commit
b7af07c043
1 changed files with 2 additions and 2 deletions
|
@ -5,12 +5,12 @@ set -ex
|
||||||
PLATFORMS="linux/arm/v7,linux/arm64/v8,linux/amd64"
|
PLATFORMS="linux/arm/v7,linux/arm64/v8,linux/amd64"
|
||||||
DOCKER_IMAGE="shlinkio/shlink-web-client"
|
DOCKER_IMAGE="shlinkio/shlink-web-client"
|
||||||
|
|
||||||
if [[ "$GITHUB_REF" == *"main"* ]]; then
|
if [[ "$GITHUB_REF" == *"develop"* ]]; then
|
||||||
docker buildx build --push \
|
docker buildx build --push \
|
||||||
--platform ${PLATFORMS} \
|
--platform ${PLATFORMS} \
|
||||||
-t ${DOCKER_IMAGE}:latest .
|
-t ${DOCKER_IMAGE}:latest .
|
||||||
|
|
||||||
# If ref is not main, then this is a tag. Build that docker tag and also "stable"
|
# If ref is not develop, then this is a tag. Build that docker tag and also "stable"
|
||||||
else
|
else
|
||||||
VERSION=${GITHUB_REF#refs/tags/v}
|
VERSION=${GITHUB_REF#refs/tags/v}
|
||||||
TAGS="-t ${DOCKER_IMAGE}:${VERSION}"
|
TAGS="-t ${DOCKER_IMAGE}:${VERSION}"
|
||||||
|
|
Loading…
Reference in a new issue