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

Rename-release #22364

Merged
merged 5 commits into from
Jun 14, 2024
Merged

Rename-release #22364

merged 5 commits into from
Jun 14, 2024

Conversation

KevinMind
Copy link
Contributor

@KevinMind KevinMind commented Jun 13, 2024

Relates to: mozilla/addons#14823
Companion to: https://github.com/mozilla-sre-deploy/deploy-amo/pull/4

Description

This PR introduces a Release.yml workflow that is triggered on release published events. This workflow currently builds our docker image using the tag that was linked to the release and will eventually be how we push our deployment image to a registry where it can then be shipped.

Context

This job can only be triggered if it is included in the tag that creates the release (kind of weird gotcha in github releases)

This job doesn't currently push to a registry, though will likely eventually push directly to GAR.

This job doesn't currently have any logic to verify that the deployment is actually successful once the image is uploaded, but this could be done.

The workflow doesn't verify the image the way the ci.yml does. This should be considered in follow up work. Maybe integrate the two workflows, or find a way to triggere the ci.yml workflow as a part of the release. THere is too much to consider for here, how to make the release blocked by success, how to roll back if it fails etc. etc.

Testing

You can test this by pushing a tag that has this commit and then publishing a release with that tag.

@KevinMind KevinMind requested a review from diox June 13, 2024 11:51
@KevinMind
Copy link
Contributor Author

Release caused workflow to run

…rkflow to finish before triggering deployment
@KevinMind KevinMind marked this pull request as draft June 14, 2024 11:35
@KevinMind
Copy link
Contributor Author

I'm going to merge this as it can only be tested on the default branch and does not significantly impact anything.

@KevinMind KevinMind marked this pull request as ready for review June 14, 2024 12:00
@KevinMind KevinMind merged commit 21a6321 into master Jun 14, 2024
54 of 55 checks passed
@KevinMind KevinMind deleted the rename-release branch June 14, 2024 12:01
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.

1 participant