Tool for generating image release changes #868
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://github.com/devcontainers/internal/issues/68
This pull request introduces a new script,
prepare-release.sh
, in thebuild
directory. The script is designed to automate the process of preparing a release of the dev containers. It includes functionality to bump the version of themanifest.json
file and run thedevcontainer upgrade
command. The script operates on either all images (useful for monthly release) or only those that have been modified since the last release commit (useful for ad-hoc release)The release PR #869 is created using this tool
build/prepare-release.sh
: A new shell script that prepares a release of the dev containers. The script includes functions to get modified images, get all images, bump the version of themanifest.json
file, and release an image. It also includes two types of releases: adhoc and monthly. The adhoc release operates on images modified since the last release commit, while the monthly release operates on all images. The script accepts a commit hash as input. If no commit hash is provided, it defaults to an monthly release.Example adhoc release:
./build/prepare-release.sh 1c6f558dc86aafd7749074ec44e238f331303517
Example monthly release:
./build/prepare-release.sh
Note: It only bumps patch version. If you need to bump minor/major versions, that needs to be done manually.