File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,12 @@ jobs:
64
64
- deploy :
65
65
name : Publish Docker Image to Docker Hub
66
66
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
75
73
- run :
76
74
name : Save Docker image layer cache
77
75
command : |
@@ -100,14 +98,14 @@ workflows:
100
98
- build
101
99
filters :
102
100
branches :
103
- ignore : /.*/
101
+ only : master
104
102
tags :
105
103
only : /^\d+\.\d+$/
106
104
- docker-publish :
107
105
requires :
108
106
- build
109
107
filters :
110
108
branches :
111
- ignore : /.*/
109
+ only : master
112
110
tags :
113
111
only : /^\d+\.\d+$/
You can’t perform that action at this time.
0 commit comments