-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/automated docker release #42
Conversation
Correct test tag, instead of tag test
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.
releases.yml
looks like it duplicates a lot of steps from tests.yml
, like all the unit and docker testing. We want the release step to be dependent on unit and docker tests passing, but not for them to run twice.
Maybe it's best to put everything back into one file? And have a distinct Docker-Release
job that needs
Docker-Integration-Test
to pass.
You could do something like:
jobs:
...
Docker-Release:
if: # expression to run when there's a merge into main
See the Github Actions docs for jobs and expressions
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.
Looks good @emre-f , have you tested that the Docker-Release
successfully pushes to the docker registry?
I just ran the tests without the main condition, and instead of a docker image with the tag test, the one with tag 0.5.7 was updated. |
Regarding issue #37:
Created a separate workflow file which is only to be triggered when there is a push happening in main (which will only happen when a PR is being merged from develop).
In this workflow, a docker image will be released with the correct tag.