Skip to content
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

Upload plugins to GCS #944

Merged
merged 2 commits into from
Jan 18, 2023
Merged

Conversation

josefkarasek
Copy link

@josefkarasek josefkarasek commented Jan 18, 2023

Description

Changes proposed in this pull request:

  • Github action that builds and uploads plugins to GCP

Resolves #943

@josefkarasek josefkarasek self-assigned this Jan 18, 2023
@josefkarasek josefkarasek force-pushed the push-plugins branch 2 times, most recently from 9b249c9 to 9f30346 Compare January 18, 2023 11:05
@josefkarasek josefkarasek marked this pull request as ready for review January 18, 2023 11:07
@josefkarasek josefkarasek requested review from a team and PrasadG193 as code owners January 18, 2023 11:07
@josefkarasek josefkarasek added the enhancement New feature or request label Jan 18, 2023
@josefkarasek josefkarasek added this to the v0.18.0 milestone Jan 18, 2023
@pkosiec pkosiec assigned pkosiec and unassigned josefkarasek Jan 18, 2023
@pkosiec
Copy link
Member

pkosiec commented Jan 18, 2023

Hey @josefkarasek, please post the links to sample runs of this Job on your fork (as a proof this works as expected). Thanks!

@josefkarasek
Copy link
Author

Workflow here: https://github.com/kubeshop/botkube/actions/workflows/test-push-plugins.yaml

Plugins here: https://console.cloud.google.com/storage/browser/botkube-plugins-latest

Copy link
Member

@pkosiec pkosiec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM, good work! 👍 Just minor comments.

Also, I know we're also building these plugins for integration test purposes, so theoretically we could extend that workflow, but building plugins is fast and I think a separate workflow like you did is much easier to maintain 👍

publish_plugins:
permissions:
contents: 'read'
id-token: 'write'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? 🤔

version: latest
- name: Build all plugins into dist directory
env:
GORELEASER_CURRENT_TAG: "v1.0.0-devel"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 I know we used this for integration tests, but this is different case, because the version is public. Can we change this v9.99.9-dev? It's not that I like v9.99.9-dev tag, but just for consistency reason it would be better than 1.0.0. Somebody can think we're going to release 1.0.0 soon 😄

Other ideas: v0.0.0-latest, v0.0.0-dev... but probably consistency is better.

What do you think?

PS you can also change the version for the integration tests.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I there any place in the test where the version is also hard-coded?

Copy link
Member

@pkosiec pkosiec Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, branch + PR build, but you already changed 👍

Copy link
Member

@pkosiec pkosiec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before merge, can you run this job once again just to make sure it works properly? I think the content: read permission is necessary (I wanted to remove id_token: write). But let's make sure it works before merge 👍 You can post a link to successful job here. Thanks!

@josefkarasek
Copy link
Author

For example this run: https://github.com/kubeshop/botkube/actions/runs/3949008561/workflow

@josefkarasek josefkarasek enabled auto-merge (squash) January 18, 2023 17:03
@josefkarasek josefkarasek merged commit ef6e1b1 into kubeshop:main Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Public hosting of latest plugin binaries & index
2 participants