File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,12 @@ jobs:
6464 - deploy :
6565 name : Publish Docker Image to Docker Hub
6666 command : |
67- if [ "${CIRCLE_BRANCH}" == "master" ]; then
68- echo "$DOCKERHUB_PASSWORD" | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
69- IMAGE_TAG="${CIRCLE_TAG}"
70- IMAGE_NAME="c1phr/aws-lambda-runtime-local"
71- docker tag $IMAGE_NAME:latest $IMAGE_NAME:$IMAGE_TAG
72- docker push $IMAGE_NAME:latest
73- docker push $IMAGE_NAME:$IMAGE_TAG
74- fi
67+ echo "$DOCKERHUB_PASSWORD" | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
68+ IMAGE_TAG="${CIRCLE_TAG}"
69+ IMAGE_NAME="c1phr/aws-lambda-runtime-local"
70+ docker tag $IMAGE_NAME:latest $IMAGE_NAME:$IMAGE_TAG
71+ docker push $IMAGE_NAME:latest
72+ docker push $IMAGE_NAME:$IMAGE_TAG
7573 - run :
7674 name : Save Docker image layer cache
7775 command : |
@@ -100,14 +98,14 @@ workflows:
10098 - build
10199 filters :
102100 branches :
103- ignore : /.*/
101+ only : master
104102 tags :
105103 only : /^\d+\.\d+$/
106104 - docker-publish :
107105 requires :
108106 - build
109107 filters :
110108 branches :
111- ignore : /.*/
109+ only : master
112110 tags :
113111 only : /^\d+\.\d+$/
You can’t perform that action at this time.
0 commit comments