Skip to content

Commit 939cc8b

Browse files
committed
travis: deploy for any branch + fix for tagged releases
1 parent 10fbaa7 commit 939cc8b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ elif [ "${1}" == "deploy" ]; then
1818
fi
1919
! push_tag_images "${TAG}" && exit 1
2020
print_summary "${TAG}"
21-
if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_TAG}" != "" ]; then
21+
if [ "${TRAVIS_TAG}" != "" ]; then
2222
if ! [ -z "${SLACK_TAG_NOTIFICATION_CHANNEL}" ] && ! [ -z "${SLACK_TAG_NOTIFICATION_WEBHOOK_URL}" ]; then
2323
! curl -X POST \
2424
--data-urlencode "payload={\"channel\": \"#${SLACK_TAG_NOTIFICATION_CHANNEL}\", \"username\": \"ckan-cloud-docker\", \"text\": \"Released ckan-cloud-docker ${TAG}\n$(curl -s https://api.github.com/repos/ViderumGlobal/ckan-cloud-docker/releases/latest | python -c "import sys,json;print(json.load(sys.stdin)['html_url'])")\", \"icon_emoji\": \":female-technologist:\"}" \

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ deploy:
1919
provider: script
2020
script: bash .travis.sh deploy
2121
on:
22+
all_branches: true
2223
condition: $TRAVIS_PULL_REQUEST = "false"

0 commit comments

Comments
 (0)