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

🌱 Add build container image as a job in release wf #839

Conversation

mquhuy
Copy link
Member

@mquhuy mquhuy commented Jan 2, 2025

This adds build-container-image as a job in the release wf. After the release note draft is created, the container image will be created.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #772

This adds build-container-image as a job in the release wf. After the
release note draft is created, the container image will be created.

Signed-off-by: Huy Mai <[email protected]>
@metal3-io-bot metal3-io-bot added this to the IPAM - v1.9 milestone Jan 2, 2025
@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 2, 2025
@mquhuy
Copy link
Member Author

mquhuy commented Jan 2, 2025

/cc @adilGhaffarDev @peppi-lotta

@mquhuy mquhuy changed the title Add build container image as a job in release wf 🌱 Add build container image as a job in release wf Jan 2, 2025
@peppi-lotta
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 2, 2025
with:
image-name: "ip-address-manager"
pushImage: true
ref: ${{ needs.push_release_tags.outputs.release_tag }}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ref: ${{ needs.push_release_tags.outputs.release_tag }}
ref: ${{ env.RELEASE_TAG }}

We can also use env.RELEASE_TAG here right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really. The release job isn't configured to run before build_ipam. They could be running in parallel, or in any order. Only the push_release_tag is guaranteed to run first. Also, I'm not sure if the env is maintained between the jobs.

Is there any reason for using env instead of outputs?

Copy link
Member

Choose a reason for hiding this comment

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

no reason it just looked simpler.

@adilGhaffarDev
Copy link
Member

/approve

@adilGhaffarDev
Copy link
Member

cc @Rozzii @kashifest

@kashifest
Copy link
Member

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adilGhaffarDev, kashifest

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 2, 2025
@adilGhaffarDev
Copy link
Member

/override metal3-ubuntu-e2e-integration-test-release-1-9

@metal3-io-bot
Copy link
Contributor

@adilGhaffarDev: adilGhaffarDev unauthorized: /override is restricted to Repo administrators, approvers in top level OWNERS file.

In response to this:

/override metal3-ubuntu-e2e-integration-test-release-1-9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kashifest
Copy link
Member

/override metal3-ubuntu-e2e-integration-test-release-1-9

@metal3-io-bot
Copy link
Contributor

@kashifest: Overrode contexts on behalf of kashifest: metal3-ubuntu-e2e-integration-test-release-1-9

In response to this:

/override metal3-ubuntu-e2e-integration-test-release-1-9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@mquhuy
Copy link
Member Author

mquhuy commented Jan 2, 2025

/close This PR merges to the wrong branch. Redo in #840

@mquhuy mquhuy closed this Jan 2, 2025
@kashifest
Copy link
Member

/close

@kashifest
Copy link
Member

@mquhuy wont we need this for release-1.9 patch releases anyhow or do we do the releases from main branch always?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants