Skip to content

Commit

Permalink
push docker for prs/branches using the short sha
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Oct 11, 2019
1 parent 442e2e0 commit 63d7e3b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@ jobs:
- run: go test ./...
- *save_cache

push-docker-pr:
executor:
name: default
steps:
- checkout
- setup_remote_docker
- run: make build-image
- run: |
set -e
set -u
export TAG="${CIRCLE_SHA1:0:7}"
echo $DOCKER_PASSWORD | docker login --username $DOCKER_USERNAME --password-stdin
docker tag mattermost/mattermost-cloud:test mattermost/mattermost-cloud:$TAG
docker push mattermost/mattermost-cloud:$TAG
push-docker:
executor:
name: default
Expand Down Expand Up @@ -94,6 +110,12 @@ workflows:
- check-style
- test-sqlite
- test-postgres
- push-docker:
context: matterbuild-docker
requires:
- check-style
- test-sqlite
- test-postgres
master-build:
jobs:
- check-style:
Expand Down

0 comments on commit 63d7e3b

Please sign in to comment.