Conversation
9f4da0d to
a35b381
Compare
.github/workflows/plugin-cd.yml
Outdated
| required: false | ||
| type: string | ||
|
|
||
| skip-aws-upload: |
There was a problem hiding this comment.
For the CD part it's imperative to upload. This is how we download the pre-packaged plugins .
Do we also need the flag there ?
There was a problem hiding this comment.
So we get the release on Github but not uploaded to S3, since the bundles are attached to releases here there's no need to have the S3 files around.
There was a problem hiding this comment.
When you bundle a plugin with mattermost platform currently it is being fetched from the S3 bucket through a cloudfront distribution .
Since we have not yet changed this functionality we should continue uploading artifacts to S3
https://github.com/mattermost/mattermost/blob/master/server/build/release.mk#L147
If you are completely sure that your plugin is not going to be bundled in the future with mattermost platform then you should use this but I suggest against that
There was a problem hiding this comment.
In this case this plugin won't be bundled since it will become EoL the moment the full feature arrives in Mattermost, and I see this being like that for a number of plugins: cc: @wiggin77
Are we putting plugins in the bucket "just in case", are we doing any kind of cleanup of deprecated/deleted/outdated plugins?
There was a problem hiding this comment.
@fmartingr Thanks for taking the time to look at this. I made a comment in our internal discussion to clarify that we're not saving "just in case" but as main data store - https://hub.mattermost.com/private-core/pl/epzwcuorgjgpzxgrnjamfqhrcc
are we doing any kind of cleanup of deprecated/deleted/outdated plugins?
No, for it's protected (data integrity, compliance, audit, etc) but can do so if requested.
There was a problem hiding this comment.
Understood. Removed the option from CD.
|
|
||
| delivery: | ||
| if: ${{ github.repository_owner == 'mattermost' && github.event_name != 'schedule' && (github.ref_name == 'master' || github.ref_name == 'main') }} | ||
| if: ${{ github.repository_owner == 'mattermost' && github.event_name != 'schedule' && (github.ref_name == 'master' || github.ref_name == 'main') && !inputs.skip-aws-upload }} |
There was a problem hiding this comment.
I will have to test that . I do not think this is evaluated as boolean .
Check here
There was a problem hiding this comment.
Oh, I forgot about that, but you're right, we need to use fromJSON or use string comparison.
Summary
Allows plugins to skip the AWS S3 artifact upload by using a new input argument:
skip-s3-upload