Commit 9e8c7d22 authored by Sheogorath's avatar Sheogorath 🎓

Re-add Version specific builds

With the refactoring done in the previous commit[1], by accident the actual
release build broke. Therefore even while the image has a stable image
tag, the master version is in the current 2.2.1 image. This patch
should rebuild the image and fix this problem.

[1]: b6120fce
parent 21de06a8
Pipeline #1692 failed
......@@ -2,6 +2,10 @@ image: quay.io/sheogorath/build-ah-engine
before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ] && export VERSION="$DOH_VERSION"
variables:
DOH_VERSION: "2.2.1"
stages:
- analyse
......@@ -13,7 +17,7 @@ stages:
build:
stage: build
script:
- podman build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- podman build --pull --build-arg VERSION -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
testing:
......@@ -32,8 +36,6 @@ testing:
tagging-master:
stage: tag
variables:
DOH_VERSION: "2.2.1"
script:
- podman pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
- si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE" "${DOH_VERSION}"
......
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