-
Notifications
You must be signed in to change notification settings - Fork 40
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
chore: update GHA to run workflows for rel-1.5 #373
base: rel-1.5
Are you sure you want to change the base?
Conversation
Signed-off-by: gatici <[email protected]>
Signed-off-by: gatici <[email protected]>
@gatici, I think you need to update the |
Signed-off-by: gatici <[email protected]>
The target_branch is updated here https://github.com/omec-project/amf/blob/main/.github/workflows/push.yml#L113. |
But, given that this automatically opens a PR towards a branch, should we properly update the target branch? I guess the default target branch is |
@gatici, I think we need to provide the |
Yes, you are right. I added the |
Signed-off-by: gatici <[email protected]>
Signed-off-by: gatici <[email protected]>
Hi @thakurajayL @gruyaume, Currently, we have 5 GHAs in diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 031ff5e..1f966f8 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -12,7 +12,7 @@ on:
jobs:
push-images:
runs-on: ubuntu-latest
- if: github.repository_owner == 'omec-project'
+ if: (github.repository_owner == 'omec-project') && (github.ref_name == 'main')
env:
REGISTRY: registry.aetherproject.org
DOCKER_REGISTRY: registry.aetherproject.org/ Also, one aspect that @thakurajayL pointed out in a similar PR (omec-project/nrf#165 (comment)) is that Also adding @ghislainbourgeois for his thoughts/feedback on this. |
I think the CI as it is might be a bit problematic because it is lacking tests on the generated image. For now I think it would be fine to not push the PR image to the aether registry, but in the future it would be great to follow a process that looks more or less like this:
where Regarding the VERSION file, I think it should reflect the current version. It would mean changes to the CI going forward, but we could use it as a trigger to cut a release, meaning that when we are ready to cut a new release, we create a PR that bumps the VERSION, and merging that could automatically do things like creating a new branch, tagging the release and publishing the images. I would be happy to help on this, but it is probably a larger effort than this PR. I can write up a document to discuss at a TST meeting in the new year to agree on an approach maybe? |
@ghislainbourgeois thanks for your feedback. Please see below my comments:
Yes, I was working on something like this (testing the image) but I have not had a chance to achieve much progress due to many other pending/higher priority tasks (Here you can see what I have committed so far and I have some other change in my local system: https://github.com/gab-arrobo/amf/tree/gha-e2e)
This is what it is kind of happening in the current CI/CD pipeline. Feel free to take a closer look at the
FYI, Guillaume shared a document about this that we used for the "re-design" of the pipeline. Will the link with you through Slack |
Signed-off-by: gatici <[email protected]>
Signed-off-by: gatici <[email protected]>
Signed-off-by: gatici <[email protected]>
rel-1.5
branch.rel-1.5
branch or to any tags that match the patternv
staticcheck
, linting, license-check and run unit testsunit-tests
,lint
, andstaticcheck
.VERSION
file if E2E tests passes.docker.io
).VERSION
file.