A pipeline to publish Ruby CI container images to http://ghcr.io/ruby/ruby-ci-image.
If you want to test the container images on your forked repository with your container registry, the steps are as follows. You need to set a token up to push the containers to your container registry, as the docker/login-action
uses it in .github/workflows/publish.yml
.
- Fork this repository.
- Add your personal access token with checking write:packages at https://github.com/settings/tokens, then you get the token.
- Add the
ACCESS_TOKEN
as a value you got above, on your forked repository "your_name/ruby-ci-image" Setting - Actions - Secrets. - When you push a branch to your forked repository, GitHub Actions is executed.
- Check your container registry page, https://github.com/users/your_name/packages/container/package/ruby-ci-image. You can pull the container images by
docker
.