Skip to content
Snippets Groups Projects
Commit 48ba942f authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

fixed issue with stable version number

parent 9a14a806
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,8 @@ export $(shell sed 's/=.*//' $(cnf)) ...@@ -12,8 +12,8 @@ export $(shell sed 's/=.*//' $(cnf))
SHELL = bash SHELL = bash
## Get our version tag and stable version tag ## Get our version tag and stable version tag
VERSION=$(shell head -n1 ../../VERSION) VERSION=$(shell bash version.sh)
STABLE=$(shell echo ${$(head -n1 ../../VERSION)%.*}-stable) STABLE=$(shell bash version-stable.sh)
# help will output the help for each task # help will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html # thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
...@@ -39,7 +39,7 @@ build-unstable-nc: ## Build the container without caching (from scratch) ...@@ -39,7 +39,7 @@ build-unstable-nc: ## Build the container without caching (from scratch)
# ========================================================================== # ==========================================================================
# #
login: ## Auto login to AWS-ECR unsing aws-cli login: ## Auto login to AWS-ECR unsing aws-cli
docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}/${CI_PROJECT_PATH} docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
echo "Login COMPLETE" echo "Login COMPLETE"
stable: build-nc stable: build-nc
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
## print the stable version tag for this version to the console ## print the stable version tag for this version to the console
version=head -n1 ../../VERSION VERSION=`head -n1 ../../VERSION`
echo "${VERSION%.*}-stable" echo "${VERSION%.*}-stable"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment