Skip to content
Snippets Groups Projects
Commit a163a4eb authored by Lukasz Lopatowski's avatar Lukasz Lopatowski
Browse files

Added job for building alfa images from release branches

parent fbf54f62
Branches
Tags 0.64
1 merge request!2Develop
......@@ -42,6 +42,19 @@ build_and_push_latest_image:
docker push $DOCKER_REPOSITORY_LOCAL:$IMAGE_TAG
docker logout $DOCKER_REPOSITORY
build_and_push_alfa_image:
stage: build
only:
- /^release/
script:
- |
export IMAGE_TAG=$(echo $CI_COMMIT_BRANCH | cut -c 9-)-alfa
docker image prune -f
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REPOSITORY
docker build -t $DOCKER_REPOSITORY_LOCAL:$IMAGE_TAG .
docker push $DOCKER_REPOSITORY_LOCAL:$IMAGE_TAG
docker logout $DOCKER_REPOSITORY
build_and_push_release_image:
stage: build
only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment