Skip to content
Snippets Groups Projects
Commit 6b411a0f authored by Franziska Michl's avatar Franziska Michl
Browse files

yaml_File_git geändert

parent 4813d385
No related branches found
No related tags found
Loading
......@@ -36,10 +36,11 @@ maven-build:
- target/*.jar
container:
image: maven:3.6-openjdk-15
image: docker:latest
stage: deploy
script: mvn package jib:build -DskipTests
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_COMMIT_BRANCH == "master"'
when: manual
script:
- echo-n $CI_JOB_TOKEN | docker login-u gitlab-ci-token \\
--password-stdin $CI_REGISTRY
- docker build--cache-from $CI_REGISTRY_IMAGE:latest \\
- --tag $CI_REGISTRY_IMAGE:latest .
- - docker push $CI_REGISTRY_IMAGE:latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment