-
Notifications
You must be signed in to change notification settings - Fork 174
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
Build docker image on CI #324
Conversation
Hi @koppor and thanks a lot for your interest in GumTree. The test that breaks targets an external parser, I think it's not a big deal, maybe due to a checkout of a more recent / an older version. If I understand correctly, the docker image is just built but not pushed anywhere, right? I am not sure it is feasible on GitHub but could we store/push this docker image somewhere? Right now it is periodically pushed to docker hub (by hand) and then used for the CI on this repo ( Best regards. |
Right!
Yes. This is the "original" intention of the used GitHub action. One could do periodically build+push on Example available at https://github.com/docker/build-push-action#git-context One needs a docker login name and a docker secret stored in the GitHub secrets. This PR is a step in that direction. It will enable maintainers of this repository to work on it (because they have access to secrects) |
I added the push feature. You need to configure two GitHub secrets:
The secrets are configured as follows:
The secrets are protected and cannot be accessed by non-contributors. |
Awesome!!! I am wondering how often and on what kind of trigger we should do such a push, since I suspect it gonna take a long time right? |
Depends on the definition of "a long time". Maybe 10 minutes? The push is done after all checks are green. I added a concurrency group. Thus, if there are multiple pushes to master shortly one after another, the latest one "wins" and cancels the ones before. |
BTW, since the tag We could use "edge" for the latest commit on main and "latest" for the latest tag... |
OK let's try ;-), merging this. |
Seems like there is an issue : |
I was too fast in merging the workflows:
does not have docker installed. I will split the workflows again so that the normal github image is used for docker |
To enable refinement of the Docker image, this PR adds a build to the pipeline.
I think, it works, but internally, tests are failing. I adapted that test. I allowed two values, because the return values are varying:
I also updated the checkout action to the most recent version.