diff --git a/.circleci/config.yml b/.circleci/config.yml index 260d8190ec..21d3dfcae2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -183,7 +183,8 @@ jobs: - run: name: Publish Docker command: | - docker login --username "${DOCKER_USER}" --password "${DOCKER_PASSWORD}" + docker login --username "${DOCKER_USER}" -password "${DOCKER_PASSWORD}" + docker login "${ACR_REPO}" -username "${ACR_DOCKER_USER}" -password "${ACR_DOCKER_PASSWORD}" ./gradlew --no-daemon --parallel "-Pbranch=${CIRCLE_BRANCH}" dockerUpload workflows: diff --git a/build.gradle b/build.gradle index 4a107f1001..024fa37ea6 100644 --- a/build.gradle +++ b/build.gradle @@ -568,6 +568,7 @@ task testDocker(type: Exec) { task dockerUpload(type: Exec) { dependsOn distDocker def imageName = "hyperledger/besu" + def azureImageName = "hyperledger.azurecr.io/besu" def image = project.hasProperty('release.releaseVersion') ? "${imageName}:" + project.property('release.releaseVersion') : "${imageName}:${project.version}" def cmd = "docker push '${image}'" def additionalTags = [] @@ -583,6 +584,7 @@ task dockerUpload(type: Exec) { additionalTags.each { tag -> cmd += " && docker tag '${image}' '${imageName}:${tag.trim()}' && docker push '${imageName}:${tag.trim()}'" + cmd += " && docker tag '${image}' '${azureImageName}:${tag.trim()}' && docker push '${azureImageName}:${tag.trim()}'" } executable "sh" args "-c", cmd