Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH] travis-ci: deploy packages from tagged revisions
@ 2019-06-14 16:44 Alexander Turenko
  2019-07-26 17:23 ` [tarantool-patches] " Kirill Yukhin
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Turenko @ 2019-06-14 16:44 UTC (permalink / raw)
  To: Kirill Yukhin
  Cc: Alexander Turenko, tarantool-patches, Alexander V . Tikhonov

The problem was that a tagged revision is not deployed, so after a
release we did an empty commit to trigger deployment. Now it is worked
around by adding extra deployment rules that deploys tagged revisions.
The workaround was suggested by Hiro Asari in [1].

[1]: https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370

Fixes #3745.
---

https://github.com/tarantool/tarantool/issues/3745
https://github.com/tarantool/tarantool/tree/Totktonada/gh-3745-deploy-tagged-revisions

 .travis.yml | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index e94d02ef5..061da9af4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -104,7 +104,7 @@ before_deploy:
   - ls -l build/
 
 deploy:
-  # Deploy packages to PackageCloud
+  # Deploy packages to PackageCloud from master branch (w/o tagged revisions)
   - provider: packagecloud
     username: "tarantool"
     repository: "2_2"
@@ -116,7 +116,7 @@ deploy:
       repo: tarantool/tarantool
       branch: "master"
       condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
-  # Deploy source tarballs to S3
+  # Deploy source tarballs to S3 from master branch (w/o tagged revisions)
   - provider: script
     script: make -f .travis.mk source_deploy
     skip_cleanup: true
@@ -124,6 +124,28 @@ deploy:
       repo: tarantool/tarantool
       branch: "master"
       condition: "x${TARGET} = xsource"
+  # Deploy packages to PackageCloud from tagged revisions
+  # https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370
+  - provider: packagecloud
+    username: "tarantool"
+    repository: "2_2"
+    token: "${PACKAGECLOUD_TOKEN}"
+    dist: "${OS}/${DIST}"
+    package_glob: build/*.{rpm,deb,dsc}
+    skip_cleanup: true
+    on:
+      repo: tarantool/tarantool
+      tags: true
+      condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
+  # Deploy source tarballs to S3 from tagged revisions
+  # https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370
+  - provider: script
+    script: make -f .travis.mk source_deploy
+    skip_cleanup: true
+    on:
+      repo: tarantool/tarantool
+      tags: true
+      condition: "x${TARGET} = xsource"
 
 notifications:
   email:
-- 
2.21.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-26 17:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-14 16:44 [tarantool-patches] [PATCH] travis-ci: deploy packages from tagged revisions Alexander Turenko
2019-07-26 17:23 ` [tarantool-patches] " Kirill Yukhin
2019-07-26 17:47   ` Alexander Turenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox