Commit a0886ae0 authored by Alicja Reniewicz's avatar Alicja Reniewicz
Browse files

tag with branch name in docker image

parent e72b0b9e
Pipeline #8049 passed with stages
in 20 minutes and 53 seconds
......@@ -61,16 +61,12 @@ deploy:raml_to_jaxrs:
image: $MAVEN_IMAGE
script:
- $RAML_TO_JAXRS_CLI deploy
only:
- master
deploy:interfaces:
stage: deploy
image: $MAVEN_IMAGE
script:
- $INTERFACES_CLI deploy
only:
- master
deploy:mule_esb:
stage: deploy
......@@ -80,10 +76,8 @@ deploy:mule_esb:
script:
- $DOCKER_CLI $MULE_ESB_CLI -Ddocker.imagePrefix=melodic/ clean install
- echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $DOCKER_REPO -u $K8S_SECRET_DOCKER_USER --password-stdin
- docker tag $LOCAL_REPO/melodic/mule $DOCKER_REPO/melodic/melodic-integration/mule
- docker push $DOCKER_REPO/melodic/melodic-integration/mule
only:
- master
- docker tag $LOCAL_REPO/melodic/mule $DOCKER_REPO/melodic/melodic-integration/mule:$CI_COMMIT_BRANCH
- docker push $DOCKER_REPO/melodic/melodic-integration/mule:$CI_COMMIT_BRANCH
deploy:process:
stage: deploy
......@@ -93,7 +87,5 @@ deploy:process:
script:
- $DOCKER_CLI $PROCESS_CLI -Ddocker.imagePrefix=melodic/ clean install
- echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $DOCKER_REPO -u $K8S_SECRET_DOCKER_USER --password-stdin
- docker tag $LOCAL_REPO/melodic/process $DOCKER_REPO/melodic/melodic-integration/process
- docker push $DOCKER_REPO/melodic/melodic-integration/process
only:
- master
- docker tag $LOCAL_REPO/melodic/process $DOCKER_REPO/melodic/melodic-integration/process:$CI_COMMIT_BRANCH
- docker push $DOCKER_REPO/melodic/melodic-integration/process:$CI_COMMIT_BRANCH
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