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 Tokens (classic) page, then you get the token.
- Add the
ACCESS_TOKEN
as a value you got above, at Setting - Security - Secrets and variables - Actions - Actions secrets and variables page - Secrets tab on your forked repository "your_name/ruby-ci-image". - If you want to execute GitHub Actions workflow to test the container images on push on any branches, comment out the
on.push.branches
syntax in thepublish.yml
. - When you push a branch to your forked repository, GitHub Actions workflow 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
.