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

9575 fix CI for app images pushing #9576

Merged
merged 4 commits into from
May 8, 2023

Conversation

poikilotherm
Copy link
Contributor

@poikilotherm poikilotherm commented May 8, 2023

What this PR does / why we need it:

For PRs from forks we don't want failing jobs because of no access to secrets. Instead, we run the deploy tasks only when available or if triggered by a comment from a maintainer.

Which issue(s) this PR closes:

Special notes for your reviewer:
The PR command can only be tested after we merge this, as the dispatching must be present in the default branch.

Suggestions on how to test this:

  1. Take a look at this PR's action log and see how the image pushing is avoided because no secrets.
  2. Take a look at TEST - 9575 - but from upstream branch #9577 test PR's action log to see how the push isn't avoided in that case and a nice comment is left about how to use the image.
  3. The PR command cannot be tested yet, because it must be merged first to actually work at all

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Nope.

Is there a release notes update needed for this change?:
I don't know. Probably not?

Additional documentation:
None so far. Shall we write some docs somewhere in the guides, so we let people know about the "/push-image" command?

In case of pull requests from forks, a run does not have access
to secrets. Thus we check if we can access the secrets, otherwise
we skip the pushing part (which will rely on a comment trigger).
@poikilotherm poikilotherm added the Component: Containers Anything related to cloudy Dataverse, shipped in containers. label May 8, 2023
@poikilotherm poikilotherm self-assigned this May 8, 2023
@poikilotherm poikilotherm added the Size: 3 A percentage of a sprint. 2.1 hours. label May 8, 2023
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

This is what we talked about at tech hours last week. Thanks, @poikilotherm!

@pdurbin pdurbin merged commit b3a362a into IQSS:develop May 8, 2023
5 of 6 checks passed
@poikilotherm poikilotherm deleted the 9575-fix-ghcr-pushes branch May 8, 2023 12:23
@pdurbin pdurbin added this to the 5.14 milestone May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Containers Anything related to cloudy Dataverse, shipped in containers. Feature: Container Guide Feature: Developer Guide Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Enable PR-based app images from forks
2 participants