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

[GHA] Reduce jobs on tag publish and fix tag var/context #490

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

mallardduck
Copy link
Member

This PR does 2 important things:

  1. Reduces the number of GHA jobs this repo spawns.
  2. Fixes my last fix attempt properly.

Why those matter:

Reducing GHA jobs

There are a lot of instances where varying rancher repos are failing due to odd rate-limit things and other quirks. Eventually these will be ironed out, but until then we can reduce the load we put on it by making this change. Since both the workflows rely on the same "pre-step" and call the CI workflow - that spawns 2 instances of CI with 3 jobs each, for 6 jobs total. And if one half of those fail/pass then the other should too (sans GHA worker issues).

Fix to last attempt to multiple tags on identical commit

I misread the GHA docs and was looking at references for ENV based variables that are provided. However used an incorrect syntax and as a result the value was empty when reviewing the job. So that confirms my suspicion that the issue could have come back at next un-RC. By using the github context though I can get the results I was going for with the first version of the fix.

...just noticed the GHA job that ran after I added this fix has the value empty.
read the docs harder on GH and found out I read the wrong docs and mixed env var and context.
this changes it to use a valid context within the GHA
Copy link
Collaborator

@ericpromislow ericpromislow left a comment

Choose a reason for hiding this comment

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

Looks good, and stopped using vars.GITHUB_REF_NAME

@mallardduck mallardduck merged commit 823ca3b into rancher:release/v5.0 Jul 19, 2024
3 checks passed
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