Commit 33c7ff35 authored by Thomas Beermann's avatar Thomas Beermann
Browse files

Update ci.yml

parent cacae10f
Pipeline #85084 failed with stages
in 2 minutes and 26 seconds
......@@ -58,13 +58,13 @@ docker_push:
- docker login -u $GITLAB_DOCKER_USERNAME -p $GITLAB_DOCKER_PASSWORD $DOCKER_REGISTRY
- |-
TAG="latest"
if [[ -n "$WEBAPP_PROJECT_BRANCH" ]]; then
TAG="$WEBAPP_PROJECT_BRANCH"
if [[ -n "$WEBAPP_BRANCH" ]]; then
TAG="$WEBAPP_BRANCH"
if [[ $TAG == \.* ]]; then
TAG=${TAG:1}
fi
elif [[ -n "$WEBAPP_PROJECT_VERSION" ]]; then
TAG="$WEBAPP_PROJECT_VERSION"
elif [[ -n "$WEBAPP_VERSION" ]]; then
TAG="$WEBAPP_VERSION"
fi
docker build -t $DOCKER_IMAGE_BASE:$TAG .
docker push $DOCKER_IMAGE_BASE:$TAG
......
Supports Markdown
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