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

[BOP-56] Run CI on merge to main #8

Merged
merged 3 commits into from
Nov 3, 2023
Merged

[BOP-56] Run CI on merge to main #8

merged 3 commits into from
Nov 3, 2023

Conversation

nwneisen
Copy link
Collaborator

@nwneisen nwneisen commented Nov 3, 2023

https://mirantis.jira.com/browse/BOP-56

What this PR does

Adds a CI to run when we merge a PR into main

I set this up to only push an image with the commit SHA. This way dev images are still available in our current registry but anyone using latest wont run into issues. I'll cleanup the release push steps in the followup release CI PR.

Testing

I tested this on my fork of the repo. The push stage didn't work due to credentials but this step was previously working and so I wasn't worried about it.

@nwneisen nwneisen changed the title [BOP-56] Run CI on merge [BOP-56] Run CI on merge to main Nov 3, 2023
workflow_call:

jobs:
# push-latest:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll uncomment and clean this up when I do the release CI PR

# working-directory: .
# run: make docker-push

push-dev:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is a lot of repeated steps here but doing it this way keeps each of the push jobs independent. The repeated sections are also very quick and don't take long to run.

docs/CI.md Show resolved Hide resolved
@@ -0,0 +1,74 @@
name: Push docker images
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was release.yml. I'll be creating another release.yml file that reuses this code

@nwneisen nwneisen mentioned this pull request Nov 3, 2023
docs/CI.md Show resolved Hide resolved
.github/development.env Show resolved Hide resolved
.github/workflows/push-to-ghcr.yml Show resolved Hide resolved
.github/workflows/push-to-ghcr.yml Show resolved Hide resolved
.github/workflows/Merge.yml Show resolved Hide resolved
Copy link
Collaborator

@ranyodh ranyodh left a comment

Choose a reason for hiding this comment

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

LGTM

@nwneisen nwneisen merged commit 943ab28 into Mirantis:main Nov 3, 2023
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