Skip to content

Commit 4a9d145

Browse files
committed
travis-ci: deploy packages from tagged revisions
1 parent 0b969fd commit 4a9d145

File tree

1 file changed

+64
-1
lines changed

1 file changed

+64
-1
lines changed

.travis.yml

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ before_deploy:
3636
- ls -l build/
3737

3838
deploy:
39-
# Deploy packages to PackageCloud
39+
# Deploy packages to PackageCloud from master branch (w/o tagged revisions)
4040
- provider: packagecloud
4141
username: tarantool
4242
repository: "1_6"
@@ -97,6 +97,69 @@ deploy:
9797
on:
9898
branch: master
9999
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
100+
# Deploy packages to PackageCloud from tagged revisions
101+
# https://github.com/tarantool/tarantool/issues/3745
102+
# https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370
103+
- provider: packagecloud
104+
username: tarantool
105+
repository: "1_6"
106+
token: ${PACKAGECLOUD_TOKEN}
107+
dist: ${OS}/${DIST}
108+
package_glob: build/*.{rpm,deb}
109+
skip_cleanup: true
110+
on:
111+
tags: true
112+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
113+
- provider: packagecloud
114+
username: tarantool
115+
repository: "1_7"
116+
token: ${PACKAGECLOUD_TOKEN}
117+
dist: ${OS}/${DIST}
118+
package_glob: build/*.{rpm,deb}
119+
skip_cleanup: true
120+
on:
121+
tags: true
122+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
123+
- provider: packagecloud
124+
username: tarantool
125+
repository: "1_9"
126+
token: ${PACKAGECLOUD_TOKEN}
127+
dist: ${OS}/${DIST}
128+
package_glob: build/*.{rpm,deb}
129+
skip_cleanup: true
130+
on:
131+
tags: true
132+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
133+
- provider: packagecloud
134+
username: tarantool
135+
repository: "1_10"
136+
token: ${PACKAGECLOUD_TOKEN}
137+
dist: ${OS}/${DIST}
138+
package_glob: build/*.{rpm,deb}
139+
skip_cleanup: true
140+
on:
141+
tags: true
142+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
143+
- provider: packagecloud
144+
username: tarantool
145+
repository: "2x"
146+
token: ${PACKAGECLOUD_TOKEN}
147+
dist: ${OS}/${DIST}
148+
package_glob: build/*.{rpm,deb}
149+
skip_cleanup: true
150+
on:
151+
tags: true
152+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
153+
- provider: packagecloud
154+
username: tarantool
155+
repository: "2_2"
156+
token: ${PACKAGECLOUD_TOKEN}
157+
dist: ${OS}/${DIST}
158+
package_glob: build/*.{rpm,deb}
159+
skip_cleanup: true
160+
on:
161+
tags: true
162+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
100163

101164
notifications:
102165
email:

0 commit comments

Comments
 (0)