Commit 887f3337 authored by Darren Starr's avatar Darren Starr
Browse files

Troubleshooting build - Set docker repo as tag correct source repo

parent a8913f8b
Pipeline #7832 failed with stages
in 23 minutes and 57 seconds
......@@ -11,6 +11,8 @@ variables:
DOCKER_DIND_IMAGE: "docker:19.03.1"
DOCKER_DIND_SERVICE: "$DOCKER_DIND_IMAGE-dind"
LOCAL_REPO: "127.0.0.1:5000"
DOCKER_CLI: "docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v $CI_PROJECT_DIR/maven_repo:/root/.m2 -w /usr/src/mymaven -v $CI_PROJECT_DIR:/usr/src/mymaven $MAVEN_IMAGE"
RAML_TO_JAXRS_CLI: "mvn -DskipTests --batch-mode -f raml-to-jaxrs-7bulls/pom.xml"
INTERFACES_CLI: "mvn -DskipTests --batch-mode -f interfaces/pom.xml"
......@@ -79,7 +81,7 @@ deploy:mule_esb:
script:
- $DOCKER_CLI $MULE_ESB_CLI -Ddocker.imagePrefix=melodic-$BRANCH_NAME/ clean install
- docker login $DOCKER_REPO -u $K8S_SECRET_DOCKER_USER -p $K8S_SECRET_DOCKER_PASSWORD
- docker tag melodic-$BRANCH_NAME/mule $DOCKER_REPO/melodic-$BRANCH_NAME/mule
- docker tag $LOCAL_REPO/melodic-$BRANCH_NAME/mule $DOCKER_REPO/melodic-$BRANCH_NAME/mule
- docker push $DOCKER_REPO/melodic-$BRANCH_NAME/mule:latest
only:
- master
......@@ -92,7 +94,7 @@ deploy:process:
script:
- $DOCKER_CLI $PROCESS_CLI -Ddocker.imagePrefix=melodic-$BRANCH_NAME/ clean install
- docker login $DOCKER_REPO -u $K8S_SECRET_DOCKER_USER -p $K8S_SECRET_DOCKER_PASSWORD
- docker tag melodic-$BRANCH_NAME/process $DOCKER_REPO/melodic-$BRANCH_NAME/process
- docker tag $LOCAL_REPO/melodic-$BRANCH_NAME/process $DOCKER_REPO/melodic-$BRANCH_NAME/process
- docker push $DOCKER_REPO/melodic-$BRANCH_NAME/process
only:
- master
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