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 chart as github artifact #2086

Merged
merged 3 commits into from
Apr 9, 2021
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Mar 8, 2021

  • runs publish workflow for push and pull request
  • moves credential-requiring conditions to individual steps instead of workflow as a whole
  • on pull request, upload as artifact instead of publishing to the chart repository

This will only fully work if there are no changes to images in the PR, since image upload won't happen without credentials.

closes #2043

- runs publish workflow for push and pull request
- moves credential-requiring conditions to individual steps instead of workflow as a whole
- on pull request, upload as artifact instead of publishing to the chart repository

This will only fully work if there are no changes to images
uses step output for central single variable since it's a derived value that we check several times

# ref: https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v2
if: steps.publishing.outputs.publishing == ''
Copy link
Member Author

Choose a reason for hiding this comment

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

Weird possible bug in actions: cannot use simpler if: !steps.publishing.outputs.publishing which produces a syntax error, when I'm pretty sure it should be fine.

Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

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

Nice LGTM!

@consideRatio consideRatio merged commit 9a86411 into jupyterhub:master Apr 9, 2021
@consideRatio
Copy link
Member

Thank you @minrk! ❤️

@minrk minrk deleted the upload-chart branch April 15, 2021 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: let PRs produce build artifacts of a packaged chart
3 participants