Skip to content
Snippets Groups Projects
Commit 872b1115 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

More flow control

parent 9805b0ea
Branches
Tags
3 merge requests!90Develop,!63Resolve "Dockerfile",!53V.0.1.0 Codename Threadbare
Pipeline #52962 passed
......@@ -5,11 +5,14 @@ build:docker:
stage: build
tags:
- baremetal
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
- >
docker build \
--build-arg <GITLAB_USER>=<$GO_MODULES_USER> \
--build-arg <GITLAB_TOKEN>=<$GO_MODULES_ACCESS_TOKEN> \
--build-arg GITLAB_USER=$GO_MODULES_USER \
--build-arg GITLAB_TOKEN=$GO_MODULES_ACCESS_TOKEN \
-t $DOCKER_IMAGE_SHA .
.deploy: &deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment