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 authored and ligurio committed Mar 25, 2022
1 parent fbff60d commit 012d1a9
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .travis.yml
Expand Up @@ -34,7 +34,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 @@ -65,6 +65,40 @@ deploy:
on:
branch: master
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
# 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/*.{deb,rpm,dsc}
skip_cleanup: true
on:
tags: true
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
- provider: packagecloud
username: tarantool
repository: "2x"
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: build/*.{deb,rpm,dsc}
skip_cleanup: true
on:
tags: true
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
- provider: packagecloud
username: tarantool
repository: "2_2"
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: build/*.{deb,rpm,dsc}
skip_cleanup: true
on:
tags: true
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"

notifications:
email:
Expand Down

0 comments on commit 012d1a9

Please sign in to comment.