We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8e7e6c commit ccdc6a6Copy full SHA for ccdc6a6
circleci/docker-publish
@@ -20,7 +20,6 @@ check_hub_vars() {
20
}
21
22
push_hub_image() {
23
- docker login -u $DOCKER_USER -p $DOCKER_PASS --email="$DOCKER_EMAIL"
24
docker push $ORG/$REPO:$SHORT_SHA
25
26
@@ -54,6 +53,10 @@ if [ "$ECR_PUSH_ID" != "" ]; then
54
53
check_ecr_vars
55
fi
56
+# dockerhub login.
57
+# `FROM image` in Dockerfile is going to pull from DockerHub
58
+docker login -u $DOCKER_USER -p $DOCKER_PASS --email="$DOCKER_EMAIL"
59
+
60
echo "Building docker image..."
61
docker build -t $ORG/$REPO:$SHORT_SHA .
62
0 commit comments