Skip to content
Snippets Groups Projects
Commit d758c505 authored by xcizek's avatar xcizek
Browse files

ci_variables_test4

parent 73a5c4f9
Branches
1 merge request!1Draft: Resolve "Extrahovat Gateway z projketu dna-analyser"
Pipeline #158667 failed with stage
in 12 seconds
......@@ -3,7 +3,7 @@ variables:
SPRING_PROFILES_ACTIVE: gitlab
DOCKER_HOST: $DOCKER_HOST_BIO
#IMAGE_TAG: ${$CI_COMMIT_TAG:-"latest"}
IMAGE_TAG: $CI_COMMIT_TAG || "latest"
IMAGE_TAG: latest
#services:
# - docker:dind
......@@ -56,13 +56,16 @@ gradlew-bootJar:
- ./gradlew bootJar
docker-build:
rules:
- if: $CI_COMMIT_TAG != ""
variables:
IMAGE_TAG: $CI_COMMIT_TAG
variables:
DOCKER_HOST: $DOCKER_HOST_BIO
stage: build
image: docker:git
script:
- echo $IMAGE_TAG
- echo ${$IMAGE_TAG}
- docker build -t $DOCKER_NAMESPACE/gateway:$IMAGE_TAG .
- docker save -o build/image.tar $DOCKER_NAMESPACE/gateway:$IMAGE_TAG
artifacts:
......
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