-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci.sh/GHA: Add docker-build-push step/action
A major maintainability issue for years has been that the CI assumes that a docker image for the implementation exists in Docker's registry (named kanaka/mal-test-IMPL). This means the upstream maintainers have to be involved in the PR loop to build the implementation Dockerfile, push to the docker registry and then have the PR submitter re-run CI. To address this, in ci.sh, the docker-build-push action will try to pull the image and then continue as normal. If the pull fails then it will build the image and push it (if the build is running in the context of the upstream repo's main branch) and then continue. Also, this switches to using ghcr.io as the default repo for images which will make image transfer more local (during CI) and hopefully a fair bit faster (and avoid potential docker pull limits). Add a steps to the GHA main workflow that do a docker login to ghcr.io and then call `ci.sh docker-build-push ${IMPL}`.
- Loading branch information
Showing
3 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters