File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,12 @@ jobs:
3232 circleci step halt
3333 fi
3434 - run : make image
35- - run : echo "$GCR_JSON_KEY " | docker login -u _json_key --password-stdin us.gcr.io
35+ - run : echo "$DOCKER_PASSWORD " | docker login -u "$DOCKER_USERNAME" --password-stdin
3636 - run :
37- name : Push image to GCR
37+ name : Push image to Dockerhub
3838 command : |
39- docker tag codeclimate/codeclimate-gofmt \
40- us.gcr.io/code-climate/codeclimate-gofmt:b$CIRCLE_BUILD_NUM
41- docker push us.gcr.io/code-climate/codeclimate-gofmt:b$CIRCLE_BUILD_NUM
39+ make release RELEASE_TAG="b$CIRCLE_BUILD_NUM"
40+ make release RELEASE_TAG="$(echo $CIRCLE_BRANCH | grep -oP 'channel/\K[\w\-]+')"
4241 - run : send_webhook
4342
4443workflows :
Original file line number Diff line number Diff line change 1- .PHONY : image
1+ .PHONY : image release
22
33IMAGE_NAME ?= codeclimate/codeclimate-gofmt
4+ RELEASE_REGISTRY ?= codeclimate
5+ RELEASE_TAG ?= latest
46
57image :
68 docker build --tag " $( IMAGE_NAME) " .
9+
10+ release :
11+ docker tag $(IMAGE_NAME ) $(RELEASE_REGISTRY ) /codeclimate-gofmt:$(RELEASE_TAG )
12+ docker push $(RELEASE_REGISTRY ) /codeclimate-gofmt:$(RELEASE_TAG )
You can’t perform that action at this time.
0 commit comments