{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2570","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2570/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2570/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2570/events","html_url":"https://github.com/travis-ci/travis-ci/issues/2570","id":38704176,"node_id":"MDU6SXNzdWUzODcwNDE3Ng==","number":2570,"title":"(before|after)_deploy should be run only once before and after all deployment providers","user":{"login":"BanzaiMan","id":25666,"node_id":"MDQ6VXNlcjI1NjY2","avatar_url":"https://avatars3.githubusercontent.com/u/25666?v=4","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"labels":[{"id":48084799,"node_id":"MDU6TGFiZWw0ODA4NDc5OQ==","url":"https://api.github.com/repos/travis-ci/travis-ci/labels/deployment","name":"deployment","color":"444444","default":false},{"id":107427,"node_id":"MDU6TGFiZWwxMDc0Mjc=","url":"https://api.github.com/repos/travis-ci/travis-ci/labels/feature-request","name":"feature-request","color":"009800","default":false},{"id":40343601,"node_id":"MDU6TGFiZWw0MDM0MzYwMQ==","url":"https://api.github.com/repos/travis-ci/travis-ci/labels/travis-build","name":"travis-build","color":"207de5","default":false}],"state":"open","locked":false,"assignee":{"login":"BanzaiMan","id":25666,"node_id":"MDQ6VXNlcjI1NjY2","avatar_url":"https://avatars3.githubusercontent.com/u/25666?v=4","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"assignees":[{"login":"BanzaiMan","id":25666,"node_id":"MDQ6VXNlcjI1NjY2","avatar_url":"https://avatars3.githubusercontent.com/u/25666?v=4","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":26,"created_at":"2014-07-25T07:35:02Z","updated_at":"2019-01-05T10:55:40Z","closed_at":null,"author_association":"MEMBER","body":"Right now, these sections fire for each deployment provider. If a command is not idempotent (say, `git fetch --unshallow`), having multiple providers lead to reproducible error.\n"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/451645732","html_url":"https://github.com/travis-ci/travis-ci/issues/2570#issuecomment-451645732","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2570","id":451645732,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTY0NTczMg==","user":{"login":"diversit","id":484565,"node_id":"MDQ6VXNlcjQ4NDU2NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/484565?v=4","gravatar_id":"","url":"https://api.github.com/users/diversit","html_url":"https://github.com/diversit","followers_url":"https://api.github.com/users/diversit/followers","following_url":"https://api.github.com/users/diversit/following{/other_user}","gists_url":"https://api.github.com/users/diversit/gists{/gist_id}","starred_url":"https://api.github.com/users/diversit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diversit/subscriptions","organizations_url":"https://api.github.com/users/diversit/orgs","repos_url":"https://api.github.com/users/diversit/repos","events_url":"https://api.github.com/users/diversit/events{/privacy}","received_events_url":"https://api.github.com/users/diversit/received_events","type":"User","site_admin":false},"created_at":"2019-01-05T10:55:40Z","updated_at":"2019-01-05T10:55:40Z","author_association":"NONE","body":"Also running into this issue. Also do not understand why 'before' and 'after' would run for each provider. The goal is to create a single binary and deploy it to multiple targets, in my case Github and Bintray. By running for each provider there is a chance the created binaries are not equal and that is not what you want I think.\r\n\r\nReading through this issue, it is apparently not possible or wanted to change the current behaviour because it exists for so long already. Instead of creating new phases I propose to add a boolean property to allow running the before/after for all or per provider. E.g. `run_deploy_scripts_per_provider: false`.\r\n\r\nDefault value should be `false` so it's still backwards compatible. This default could be changed in more in the future release, since that seems to be the expected behaviour, and still allows the old behaviour by setting property to false."}}
{"actor":{"display_login":"diversit"}}