Skip to content

Commit 6fd3088

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

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

.travis.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ before_deploy:
3232
- ls -l build/
3333

3434
deploy:
35-
# Deploy packages to PackageCloud
35+
# Deploy packages to PackageCloud from master branch
3636
- provider: packagecloud
3737
username: tarantool
3838
repository: "1_9"
@@ -73,6 +73,50 @@ deploy:
7373
on:
7474
branch: master
7575
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
76+
# Deploy packages to PackageCloud from tags
77+
# see:
78+
# * https://github.com/tarantool/tarantool/issues/3745
79+
# * https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370
80+
- provider: packagecloud
81+
username: tarantool
82+
repository: "1_9"
83+
token: ${PACKAGECLOUD_TOKEN}
84+
dist: ${OS}/${DIST}
85+
package_glob: build/*.{rpm,deb,dsc}
86+
skip_cleanup: true
87+
on:
88+
tags: true
89+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
90+
- provider: packagecloud
91+
username: tarantool
92+
repository: "1_10"
93+
token: ${PACKAGECLOUD_TOKEN}
94+
dist: ${OS}/${DIST}
95+
package_glob: build/*.{rpm,deb,dsc}
96+
skip_cleanup: true
97+
on:
98+
tags: true
99+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
100+
- provider: packagecloud
101+
username: tarantool
102+
repository: "2x"
103+
token: ${PACKAGECLOUD_TOKEN}
104+
dist: ${OS}/${DIST}
105+
package_glob: build/*.{rpm,deb,dsc}
106+
skip_cleanup: true
107+
on:
108+
tags: true
109+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
110+
- provider: packagecloud
111+
username: tarantool
112+
repository: "2_2"
113+
token: ${PACKAGECLOUD_TOKEN}
114+
dist: ${OS}/${DIST}
115+
package_glob: build/*.{rpm,deb,dsc}
116+
skip_cleanup: true
117+
on:
118+
tags: true
119+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
76120

77121
notifications:
78122
email:

0 commit comments

Comments
 (0)