Skip to content
Snippets Groups Projects
Commit bc23b825 authored by Michal Petrovič's avatar Michal Petrovič
Browse files

Update .gitlab-ci.yml file

parent 97929137
1 merge request!4Resolve "Vyuzitie cachce miesto artifacts pomocou tags pre runnery"
Pipeline #166572 passed with warnings with stage
in 34 seconds
...@@ -22,7 +22,7 @@ include: ...@@ -22,7 +22,7 @@ include:
code_quality: code_quality:
tags: tags:
- rancher02 - worker
stage: analyse stage: analyse
services: [] # Shut off Docker-in-Docker services: [] # Shut off Docker-in-Docker
variables: variables:
...@@ -50,9 +50,9 @@ docker-build-latest: ...@@ -50,9 +50,9 @@ docker-build-latest:
image: docker:git image: docker:git
tags: tags:
- cache - cache
#only: only:
# refs: refs:
# - main - main
except: except:
variables: variables:
- $CI_COMMIT_TAG - $CI_COMMIT_TAG
...@@ -66,6 +66,8 @@ docker-build-latest: ...@@ -66,6 +66,8 @@ docker-build-latest:
docker-build-tag: docker-build-tag:
stage: build stage: build
image: docker:git image: docker:git
tags:
- cache
only: only:
variables: variables:
- $CI_COMMIT_TAG - $CI_COMMIT_TAG
...@@ -97,17 +99,19 @@ docker-push-latest: ...@@ -97,17 +99,19 @@ docker-push-latest:
image: docker image: docker
tags: tags:
- cache - cache
#only: only:
# - main - main
before_script: before_script:
- docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN $DOCKER_REGISTRY - docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN $DOCKER_REGISTRY
script: script:
- docker load -i build/image.tar - docker load -i build/image.tar
# - docker push $DOCKER_NAMESPACE/$PROJECT_NAME:latest - docker push $DOCKER_NAMESPACE/$PROJECT_NAME:latest
docker-push-tag: docker-push-tag:
stage: publish stage: publish
image: docker image: docker
tags:
- cache
only: only:
variables: variables:
- $CI_COMMIT_TAG - $CI_COMMIT_TAG
...@@ -124,6 +128,8 @@ docker-push-tag: ...@@ -124,6 +128,8 @@ docker-push-tag:
deploy-bioinformatika.pef.mendelu.cz: deploy-bioinformatika.pef.mendelu.cz:
stage: deploy stage: deploy
tags:
- master
only: only:
- main - main
script: script:
...@@ -136,6 +142,8 @@ deploy-bioinformatika.pef.mendelu.cz: ...@@ -136,6 +142,8 @@ deploy-bioinformatika.pef.mendelu.cz:
deploy-bioinformatics.ibp.cz: deploy-bioinformatics.ibp.cz:
stage: deploy stage: deploy
tags:
- master
only: only:
variables: variables:
- $CI_COMMIT_TAG - $CI_COMMIT_TAG
......
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