Commit f0a940eb authored by Noah Prail's avatar Noah Prail

build: Set default version correctly

parent a3576440
Pipeline #10780 failed
......@@ -4,6 +4,10 @@ stages:
- deploy
- post-deploy
variables:
DEFAULT_VERSION=1.0.0
build:
stage: build
tags:
......@@ -12,7 +16,7 @@ build:
before_script:
- apk add --no-cache git gcc musl-dev
- if [ -n "${VERSION}" ]; then export RELEASE=true && echo "Release Version"; fi
- export VERSION=${VERSION:-"1.0.0"}
- export VERSION=${VERSION:-"${DEFAULT_VERSION}"}
script:
- echo "Building ${VERSION}"
- sh scripts/builder.sh
......@@ -30,7 +34,7 @@ package_deb:
dependencies:
- build
before_script:
- if [ -n "${VERSION}" ]; then export RELEASE=true && echo "Release Version"; else export VERSION=${VERSION:-"1.0.0"}-${CI_PIPELINE_ID}; fi
- if [ -n "${VERSION}" ]; then export RELEASE=true && echo "Release Version"; else export VERSION=${VERSION:-"${DEFAULT_VERSION}"}-${CI_PIPELINE_ID}; fi
- export VERSION=${VERSION}
script:
- cp bin/caddy . && rm -rf bin/
......@@ -62,7 +66,7 @@ deploy_deb:
- echo -e $GPG_KEY > gpg.key
- gpg --allow-secret-key-import --import gpg.key
- if [ -n "${VERSION}" ]; then export RELEASE=true && echo "Release Version"; fi
- export VERSION=${VERSION:-"0.11.5"}
- export VERSION=${VERSION:-"${DEFAULT_VERSION}"}
script:
- bash scripts/deb-publish.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment