Skip to content

Commit

Permalink
Use new master / rc release release strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
robotblake authored and Marina Samuel committed May 25, 2018
1 parent 4afebca commit d2c9d9b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
12 changes: 12 additions & 0 deletions bin/alias
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -eo pipefail

[ ! -z $DOCKERHUB_REPO ] && [ $# -eq 2 ]

VERSION="$1"
ALIAS="$2"

docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
docker tag $DOCKERHUB_REPO:$VERSION $DOCKERHUB_REPO:$ALIAS
docker push $DOCKERHUB_REPO:$ALIAS
12 changes: 9 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,22 @@ test:
override:
- pytest --junitxml=$CIRCLE_TEST_REPORTS/junit.xml tests/
deployment:
latest:
master:
branch: master
owner: mozilla
commands:
- ./bin/deploy "latest"
hub_releases:
- ./bin/deploy "master"
release:
branch: release
owner: mozilla
commands:
- ./bin/deploy "rc"
milestone:
tag: /^m[0-9]+(\.[0-9]+)?$/
owner: mozilla
commands:
- ./bin/deploy "$CIRCLE_TAG"
- ./bin/alias "$CIRCLE_TAG" "latest"
general:
branches:
ignore:
Expand Down

0 comments on commit d2c9d9b

Please sign in to comment.