-
Notifications
You must be signed in to change notification settings - Fork 13
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
Modify the container image workflow to run mreg-cli tests #511
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the tricking comment, but otherwise lit looks fine to me. Thanks!
- name: Load container image | ||
run: | | ||
docker load --input mreg.tgz | ||
docker tag mreg ghcr.io/unioslo/mreg:latest # trick the shell script |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what we're tricking here? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I could've probably worded that better.. The comment refers to run_testsuite_and_record.sh
which is downloaded along with mreg-cli.
5551f55
to
f79624c
Compare
- name: Load container image | ||
run: docker load --input mreg.tgz | ||
- name: Tag container image | ||
# There's a docker-compose.yml file in the mreg-cli repo that wants the image from ghcr.io, | ||
# but we want to use the newly built custom image | ||
run: docker tag mreg ghcr.io/unioslo/mreg:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaned it up a bit and wrote a better comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good! Thanks!
This PR makes the following modifications to the "container image" workflow:
Note that Python version 3.11 is hardcoded for mreg-cli here. There's no need to run this in a matrix, because mreg-cli has been tested with multiple python versions already, before making it to the "master" branch that we download it from.