Merge pull request #49 from EmileVauge/emilevauge-ghr-corrections

Corrects release management with build number in tags
This commit is contained in:
Vincent Demeester 2015-10-08 20:08:28 +02:00
commit 9d168c4e15

View file

@ -27,8 +27,8 @@ deployment:
hub: hub:
branch: master branch: master
commands: commands:
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace --prerelease v1.0 dist/ - ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --prerelease v1.0.alpha.$CIRCLE_BUILD_NUM dist/
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push ${REPO,,}:latest - docker push ${REPO,,}:latest
- docker tag ${REPO,,}:latest ${REPO,,}:$CIRCLE_SHA1 - docker tag ${REPO,,}:latest ${REPO,,}:v1.0.alpha.$CIRCLE_BUILD_NUM
- docker push ${REPO,,}:$CIRCLE_SHA1 - docker push ${REPO,,}:v1.0.alpha.$CIRCLE_BUILD_NUM