Skip to content

Commit c18b1ce

Browse files
committed
travis-ci: deploy packages from tagged revisions
See tarantool/tarantool#3745
1 parent 1de2d5b commit c18b1ce

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.travis.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ before_deploy:
4343
- ls -l build/
4444

4545
deploy:
46+
# Deploy packages to PackageCloud from master branch
4647
- provider: packagecloud
4748
username: tarantool
4849
repository: "1_10"
@@ -73,6 +74,40 @@ deploy:
7374
on:
7475
branch: master
7576
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
77+
# Deploy packages to PackageCloud from tags
78+
# see:
79+
# * https://github.com/tarantool/tarantool/issues/3745
80+
# * https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370
81+
- provider: packagecloud
82+
username: tarantool
83+
repository: "1_10"
84+
token: ${PACKAGECLOUD_TOKEN}
85+
dist: ${OS}/${DIST}
86+
package_glob: build/*.{rpm,deb}
87+
skip_cleanup: true
88+
on:
89+
tags: true
90+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
91+
- provider: packagecloud
92+
username: tarantool
93+
repository: "2x"
94+
token: ${PACKAGECLOUD_TOKEN}
95+
dist: ${OS}/${DIST}
96+
package_glob: build/*.{rpm,deb}
97+
skip_cleanup: true
98+
on:
99+
tags: true
100+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
101+
- provider: packagecloud
102+
username: tarantool
103+
repository: "2_2"
104+
token: ${PACKAGECLOUD_TOKEN}
105+
dist: ${OS}/${DIST}
106+
package_glob: build/*.{rpm,deb}
107+
skip_cleanup: true
108+
on:
109+
tags: true
110+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
76111

77112
notifications:
78113
email:

0 commit comments

Comments
 (0)