Skip to content
Snippets Groups Projects
Commit f08cbd61 authored by Leah Tacke genannt Unterberg's avatar Leah Tacke genannt Unterberg
Browse files

Merge branch 'master' into release

parents 37ddc3df db238c06
Branches
No related tags found
No related merge requests found
Pipeline #479691 failed
......@@ -7,6 +7,7 @@ docker-build:
variables:
DOCKER_IMAGE_NAME: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
before_script:
- docker info
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# All branches are tagged with $DOCKER_IMAGE_NAME (defaults to commit ref slug)
# Default branch is also tagged with `latest`
......@@ -14,7 +15,7 @@ docker-build:
- docker build --pull -t "$DOCKER_IMAGE_NAME" .
- docker push "$DOCKER_IMAGE_NAME"
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
if [[ "$CI_COMMIT_BRANCH" == "release" ]]; then
docker tag "$DOCKER_IMAGE_NAME" "$CI_REGISTRY_IMAGE:latest"
docker push "$CI_REGISTRY_IMAGE:latest"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment