-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy on master and tags #7780
Comments
Do you have a build log URL that shows the problem you are describing here? |
Sure @BanzaiMan
|
The distinction is not that of the deployment provider (S3 vs script), but, rather, that of the branch vs tag. In https://travis-ci.org/kiitoscpp/toolchain/jobs/233502168#L1884, you see that the S3 provider was invoked on a tag build and the file uploaded successfully. This is a case where For your use case, however, can be resolved right now by setting up two almost identical deployment providers which differ in just the deploy:
- provider: s3
access_key_id: [secret]
secret_access_key:
secure: [secret]
bucket: [secret]
acl: public_read
region: eu-west-2
skip_cleanup: true
local-dir: dist
on:
branch: "master"
- provider: s3
access_key_id: [secret]
secret_access_key:
secure: [secret]
bucket: [secret]
acl: public_read
region: eu-west-2
skip_cleanup: true
local-dir: dist
on:
tags: true |
Thanks for the quick solution! Hypothetically, if I define: deploy:
provider: s3
...
on:
condition: true will this deploy in all cases (all branches and tags)? |
Yes, that works, but if you want to deploy on all branches and tags, we have a special one: |
I tested and using |
Please include the build log URL. |
I think I misled you with the previous comment. deploy:
on:
condition: true is always true, to it is basically a no-op. This means that the deployment will trigger under the default condition, which is "only on the |
I don't think there is any more to do here. I'm closing this. |
The best way in my opinion is to handle the deployment using |
Annoyingly, because of travis-ci/travis-ci#7780, that means duplicating the deployment section and just changing the condition :(.
@BanzaiMan The whole point of |
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]: travis-ci/travis-ci#7780 (comment) Fixes #3745.
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]: travis-ci/travis-ci#7780 (comment) Fixes #3745.
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]: travis-ci/travis-ci#7780 (comment) Fixes #3745. (cherry picked from commit 2fe7036)
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]: travis-ci/travis-ci#7780 (comment) Fixes #3745. (cherry picked from commit 2fe7036)
Before images were published to the nightly/date-versioned tags for feature branches, and not just master/tags. This makes CI take longer, creates more Docker repo churn, and means consumers of the nightly tags could end up with unexpected changes from feature branches. If testing of feature branches is required, images can be easily built locally, or tags can be manually pushed. The `TRAVIS_BRANCH` env var is being used inside the condition along with `all_branches: true`, since for tags Travis overwrites the branch with the tag name, meaning `branches: master` would exclude tags too. See: travis-ci/travis-ci#7780 Refs W-7496420.
Before images were published to the nightly/date-versioned tags for feature branches, and not just master/tags. This makes CI take longer, creates more Docker repo churn, and means consumers of the nightly tags could end up with unexpected changes from feature branches. If testing of feature branches is required, images can be easily built locally, or tags can be manually pushed. The `TRAVIS_BRANCH` env var is being used inside the condition along with `all_branches: true`, since for tags Travis overwrites the branch with the tag name, meaning `branches: master` would exclude tags too. See: travis-ci/travis-ci#7780 Refs W-7496420.
See [1] and [2]. [1]: tarantool/tarantool#3745 [2]: travis-ci/travis-ci#7780 (comment)
See [1] and [2]. [1]: tarantool/tarantool#3745 [2]: travis-ci/travis-ci#7780 (comment)
See [1] and [2]. [1]: tarantool/tarantool#3745 [2]: travis-ci/travis-ci#7780 (comment)
I'm trying to deploy on
master
and alltags
.As
script
as deploy provider I managed to do so using a condition on theon
clause as following:I'd expect the same using
s3
, but it seems like that it not the case.I got
Skipping a deployment with the s3 provider because this branch is not permitted
.Bug or wrong approch?
The text was updated successfully, but these errors were encountered: