Skip to content
Snippets Groups Projects
Commit ae6466b5 authored by xkoloma1's avatar xkoloma1
Browse files

Update .gitlab-ci.yml file

parent c942dbe7
Branches
1 merge request!1Draft: Resolve "Extrahovat Gateway z projketu dna-analyser"
Pipeline #158692 passed with warnings with stages
in 3 minutes and 36 seconds
......@@ -52,16 +52,30 @@ gradlew-bootJar:
script:
- ./gradlew bootJar
docker-build:
docker-build-tag:
variables:
DOCKER_HOST: $DOCKER_HOST_BIO
stage: build
image: docker:git
only:
variables:
- $CI_COMMIT_TAG
script:
- echo $CI_COMMIT_TAG
- docker build -t $DOCKER_NAMESPACE/gateway:$CI_COMMIT_TAG .
- docker save -o build/image.tar $DOCKER_NAMESPACE/gateway:$CI_COMMIT_TAG
docker-build-latest:
variables:
DOCKER_HOST: $DOCKER_HOST_BIO
stage: build
image: docker:git
except:
variables:
- $CI_COMMIT_TAG
script:
- docker build -t $DOCKER_NAMESPACE/gateway:latest .
- docker save -o build/image.tar $DOCKER_NAMESPACE/gateway:latest
# ===========================================================================
# Stage: test
# ===========================================================================
......
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