Skip to content
Snippets Groups Projects
Commit 13755132 authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

debug info

parent 86610483
No related branches found
No related tags found
No related merge requests found
Pipeline #750 passed
......@@ -16,7 +16,7 @@ docker-build:
echo "CI_COMMIT_BRANCH: $CI_COMMIT_BRANCH"
echo "CI_COMMIT_REF_SLUG: $CI_COMMIT_REF_SLUG"
echo "CI_REGISTRY_IMAGE: $CI_REGISTRY_IMAGE"
script:
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag=""
......@@ -25,8 +25,11 @@ docker-build:
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
- docker build -t "$CI_REGISTRY_IMAGE${tag}" .
- docker push "$CI_REGISTRY_IMAGE${tag}"
# Run this job in a branch where a Dockerfile exists
rules:
- if: $CI_COMMIT_BRANCH
......
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