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:
code_quality:
tags:
- rancher02
- worker
stage: analyse
services: [] # Shut off Docker-in-Docker
variables:
......@@ -50,9 +50,9 @@ docker-build-latest:
image: docker:git
tags:
- cache
#only:
# refs:
# - main
only:
refs:
- main
except:
variables:
- $CI_COMMIT_TAG
......@@ -66,6 +66,8 @@ docker-build-latest:
docker-build-tag:
stage: build
image: docker:git
tags:
- cache
only:
variables:
- $CI_COMMIT_TAG
......@@ -97,17 +99,19 @@ docker-push-latest:
image: docker
tags:
- cache
#only:
# - main
only:
- main
before_script:
- docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN $DOCKER_REGISTRY
script:
- docker load -i build/image.tar
# - docker push $DOCKER_NAMESPACE/$PROJECT_NAME:latest
- docker push $DOCKER_NAMESPACE/$PROJECT_NAME:latest
docker-push-tag:
stage: publish
image: docker
tags:
- cache
only:
variables:
- $CI_COMMIT_TAG
......@@ -124,6 +128,8 @@ docker-push-tag:
deploy-bioinformatika.pef.mendelu.cz:
stage: deploy
tags:
- master
only:
- main
script:
......@@ -136,6 +142,8 @@ deploy-bioinformatika.pef.mendelu.cz:
deploy-bioinformatics.ibp.cz:
stage: deploy
tags:
- master
only:
variables:
- $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