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

actions: use artifacts instead of registry for forks #7558

Merged
merged 1 commit into from
May 30, 2024

Conversation

emersion
Copy link
Member

In #7549 we tried to fix CI for external contributors by using the fork repo registry instead of the base repo registry. Unfortunately GITHUB_TOKEN cannot be used to write to the fork repo registry, it only has read access to the base repo registry.

Instead, use artifacts to pass around built Docker images.

Based on #7554 (but doesn't attempt to re-arrange the actions workflow).

There is quite a lot of boilerplate due to uploading/downloading/loading individual images. We could reduce that boilerplate by always uploading/downloading all images (at the cost of more time spent downloading stuff we won't use), or introducing a re-usable step in a separate yaml file.

In OpenRailAssociation#7549 we tried to fix CI for external contributors by using the
fork repo registry instead of the base repo registry. Unfortunately
GITHUB_TOKEN cannot be used to write to the fork repo registry, it
only has read access to the base repo registry.

Instead, use artifacts to pass around built Docker images.

Co-authored-by: Simon Ser <contact@emersion.fr>
@emersion emersion requested a review from a team as a code owner May 30, 2024 12:36
@codecov-commenter
Copy link

codecov-commenter commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.38%. Comparing base (bbe0d17) to head (abc5d2e).
Report is 6 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@              Coverage Diff              @@
##                dev    #7558       +/-   ##
=============================================
- Coverage     29.37%   10.38%   -18.99%     
=============================================
  Files          1200      586      -614     
  Lines        147415   103429    -43986     
  Branches       2894      979     -1915     
=============================================
- Hits          43296    10743    -32553     
+ Misses       102415    91714    -10701     
+ Partials       1704      972      -732     
Flag Coverage Δ
core ?
editoast ?
front 9.73% <ø> (-0.02%) ⬇️
gateway 2.41% <ø> (ø)
railjson_generator ?
tests 71.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@multun multun added this pull request to the merge queue May 30, 2024
Merged via the queue into OpenRailAssociation:dev with commit ad36fe5 May 30, 2024
17 checks passed
@emersion emersion deleted the fix-actions-fork2 branch May 30, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants