This document is intended for the rake-compiler-dock contributors.
- prep
- make sure CI is green!
- update
History.md
andlib/rake_compiler_dock/version.rb
- build
- run the steps below to generate the images locally
- run
gem build rake-compiler-dock
- create a git tag
- push
- run
bundle exec rake release:images
- run
gem push pkg/rake-compiler-dock*gem
- run
git push && git push --tags
- run
- announce
- create a release at https://github.com/rake-compiler/rake-compiler-dock/releases
We want to preserve the cache if we can, so patch releases don't change all the layers. There are a few ways to do this.
If you're going to keep your local docker cache, around, you can run things in parallel:
bundle exec rake build
If you're a pro and want to run a custom command and still run things in parallel:
export RCD_DOCKER_BUILD="docker build --arg1 --arg2"
bundle exec rake build
Here's one way to leverage the buildx cache, which will turn off parallel builds but generates an external cache directory that can be saved and re-used:
export RCD_USE_BUILDX_CACHE=t
docker buildx create --use --driver=docker-container
bundle exec rake build