Verified Commit da49a238 authored by Olivier Benz's avatar Olivier Benz
Browse files

Fix .gitlab-ci.yml

- Fix versioning
parent 530e4418
Pipeline #11068 passed with stages
in 46 minutes and 13 seconds
......@@ -16,9 +16,14 @@
- >
echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER
--password-stdin $CI_REGISTRY
- export VERSION_MAJ_MIN_PAT=$R_VERSION
- export VERSION_MAJ_MIN=`echo "${VERSION_MAJ_MIN_PAT:0:3}"`
- export VERSION_MAJ=`echo "${VERSION_MAJ_MIN_PAT:0:1}"`
- >
export VERSION_MAJ_MIN_PAT=$R_VERSION
export VERSION_MAJ_MIN=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\.[[:digit:]]\+\).*|\1|p"`
export VERSION_MAJ=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\).*|\1|p"`
.build:
image: registry.gitlab.b-data.ch/docker/docker-buildx:latest
......
......@@ -16,9 +16,14 @@
- >
echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER
--password-stdin $CI_REGISTRY
- export VERSION_MAJ_MIN_PAT=$R_VERSION
- export VERSION_MAJ_MIN=`echo "${VERSION_MAJ_MIN_PAT:0:3}"`
- export VERSION_MAJ=`echo "${VERSION_MAJ_MIN_PAT:0:1}"`
- >
export VERSION_MAJ_MIN_PAT=$R_VERSION
export VERSION_MAJ_MIN=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\.[[:digit:]]\+\).*|\1|p"`
export VERSION_MAJ=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\).*|\1|p"`
.build:
image: registry.gitlab.b-data.ch/docker/docker-buildx:latest
......
......@@ -16,9 +16,14 @@
- >
echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER
--password-stdin $CI_REGISTRY
- export VERSION_MAJ_MIN_PAT=$R_VERSION
- export VERSION_MAJ_MIN=`echo "${VERSION_MAJ_MIN_PAT:0:3}"`
- export VERSION_MAJ=`echo "${VERSION_MAJ_MIN_PAT:0:1}"`
- >
export VERSION_MAJ_MIN_PAT=$R_VERSION
export VERSION_MAJ_MIN=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\.[[:digit:]]\+\).*|\1|p"`
export VERSION_MAJ=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\).*|\1|p"`
.build:
image: registry.gitlab.b-data.ch/docker/docker-buildx:latest
......
......@@ -16,9 +16,14 @@
- >
echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER
--password-stdin $CI_REGISTRY
- export VERSION_MAJ_MIN_PAT=$R_VERSION
- export VERSION_MAJ_MIN=`echo "${VERSION_MAJ_MIN_PAT:0:3}"`
- export VERSION_MAJ=`echo "${VERSION_MAJ_MIN_PAT:0:1}"`
- >
export VERSION_MAJ_MIN_PAT=$R_VERSION
export VERSION_MAJ_MIN=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\.[[:digit:]]\+\).*|\1|p"`
export VERSION_MAJ=`echo $VERSION_MAJ_MIN_PAT |
sed -n "s|\([[:digit:]]\+\).*|\1|p"`
.build:
image: registry.gitlab.b-data.ch/docker/docker-buildx:latest
......
Supports Markdown
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