Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 480a27b

Browse files
committed
Tag releases on merge to master
1 parent 62e827e commit 480a27b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ script:
1919
after_success: tox -e coverage
2020
deploy:
2121
provider: script
22-
script: bin/docker_push
22+
script: bin/docker_push && bin/tag_release
2323
skip_cleanup: true
2424
on:
2525
branch: master

bin/tag_release

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -evuo pipefail
3+
go get -u -v github.com/screwdriver-cd/gitversion
4+
GIT_TAG=$(gitversion --prefix=v bump auto 2>&1|tail -1)
5+
git push https://$GITHUBKEY@github.com/fiaas/ais $GIT_TAG
6+
echo "successfully tagged release"
7+
echo "$GIT_TAG"

0 commit comments

Comments
 (0)