Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Image variants are available on a per JDK basis:
- The `zulu8`, `zulu11`, `oracle8`, `ibm8`, `semeru8`, `semeru11`, `semeru17`, `graalvm17`, `graalvm21`, and `graalvm25` variants all contain the base JDKs in addition to the specific JDK from their name,
- The `latest` variant contains the base JDKs and all the above specific JDKs.

Images are tagged via the [Tag new images version](https://github.com/DataDog/dd-trace-java-docker-build/actions/workflows/docker-tag.yml) workflow. This workflow tags the latest images built from the specified branch using the `vYY.MM` format. It runs quarterly on `master` but can also be triggered manually as needed.
Images are tagged via the [Tag new images version](https://github.com/DataDog/dd-trace-java-docker-build/actions/workflows/docker-tag.yml) workflow. This workflow tags the latest images built from the specified branch with a `ci-` prefix. It runs quarterly on `master` but can also be triggered manually as needed.

## Development

Expand Down
7 changes: 3 additions & 4 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -233,20 +233,19 @@ function do_push() {
}

function do_tag() {
local tag token version
local tag
TAG_PREFIX=
echo "Pulling latest images"
for tag in base latest "${BASE_VARIANTS[@]}" "${VARIANTS[@]}"; do
tag="${tag,,}"
tag="$(image_name "${tag}")"
docker pull "$tag"
done
version="$(date +%y.%m)"
echo "Tagging version $version"
echo "Tagging ci- images"
for tag in base latest "${BASE_VARIANTS[@]}" "${VARIANTS[@]}"; do
tag="${tag,,}"
tag="$(image_name "${tag}")"
new_tag="${tag/:/:v$version-}"
new_tag="${tag/:/:ci-}"
docker tag "$tag" "$new_tag"
docker push "$new_tag"
done
Expand Down