Skip to content

Commit

Permalink
travis-ci: deploy packages from tagged revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Totktonada committed Jul 31, 2019
1 parent 98c5f09 commit 74b9b16
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .travis.yml
Expand Up @@ -42,7 +42,7 @@ before_deploy:
- ls -l build/

deploy:
# Deploy packages to PackageCloud
# Deploy packages to PackageCloud from master branch
- provider: packagecloud
username: tarantool
repository: "1_10"
Expand Down Expand Up @@ -75,6 +75,44 @@ deploy:
on:
branch: master
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}" && "${TRAVIS_EVENT_TYPE}" != 'cron'

# Deploy packages to PackageCloud from tags
# see:
# * https://github.com/tarantool/tarantool/issues/3745
# * https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370
- provider: packagecloud
username: tarantool
repository: "1_10"
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: build/*.{rpm,deb,dsc}
skip_cleanup: true
on:
tags: true
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}" && "${TRAVIS_EVENT_TYPE}" != 'cron'

- provider: packagecloud
username: tarantool
repository: "2x"
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: build/*.{rpm,deb,dsc}
skip_cleanup: true
on:
tags: true
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}" && "${TRAVIS_EVENT_TYPE}" != 'cron'

- provider: packagecloud
username: tarantool
repository: "2_2"
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: build/*.{rpm,deb,dsc}
skip_cleanup: true
on:
tags: true
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}" && "${TRAVIS_EVENT_TYPE}" != 'cron'

# Archive packages
# - provider: script
# script: ./travis-archive.sh modules
Expand Down

0 comments on commit 74b9b16

Please sign in to comment.