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

Update .gitlab-ci.yml file

parent 0aa21616
Branches
1 merge request!4Resolve "Vyuzitie cachce miesto artifacts pomocou tags pre runnery"
Pipeline #166577 passed with stages
in 4 minutes and 33 seconds
......@@ -26,7 +26,6 @@ gradlew-bootJar:
image: eclipse-temurin:11-jdk-alpine
script:
- ./gradlew bootJar
- echo "bootJar"
docker-build-latest:
......@@ -34,9 +33,9 @@ docker-build-latest:
image: docker:git
tags:
- cache
# only:
# refs:
# - main
only:
refs:
- main
except:
variables:
- $CI_COMMIT_TAG
......@@ -67,6 +66,19 @@ docker-build-tag:
# Stage: test
# ===========================================================================
verification-unit:
stage: verification
image: eclipse-temurin:11-jdk-alpine
tags:
- worker
allow_failure: true
script:
- ./gradlew test
artifacts:
when: always
reports:
junit: build/test-results/test/**/TEST-*.xml
expire_in: 10 mins
# ===========================================================================
......@@ -78,13 +90,13 @@ 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
......
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