Skip to content

Commit

Permalink
Use newer links to check the docker images
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Jul 8, 2024
1 parent 73e7b5f commit 3117489
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions go/releaser/release/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,21 @@ func CheckDockerMessage(majorRelease int, repo string) []string {
"Make sure the Docker Images are being built by GitHub Actions.",
"This can be done by visiting the following links, our new release should appear in either green (done) or yellow (building / pending build):",
"",
fmt.Sprintf("\t- https://github.com/%s/actions/workflows/docker_build_vttestserver.yml", repo),
}

// Hack: versions < v20 and versions >= v20 use different GitHub Actions workflows to build the Docker images.
if majorRelease < 20 {
msg = append(msg,
fmt.Sprintf("\t- https://github.com/%s/actions/workflows/docker_build_vttestserver.yml", repo),
fmt.Sprintf("\t- https://github.com/%s/actions/workflows/docker_build_base.yml", repo),
fmt.Sprintf("\t- https://github.com/%s/actions/workflows/docker_build_lite.yml", repo),
)
} else {
} else if majorRelease == 20 {
msg = append(msg, fmt.Sprintf("\t- https://github.com/%s/actions/workflows/docker_build_vttestserver.yml", repo))
msg = append(msg, fmt.Sprintf("\t- https://github.com/%s/actions/workflows/docker_build_images.yml", repo))
} else {
// this links to the newer GitHub Actions workflow that was introduced in v21 by https://github.com/vitessio/vitess/pull/16339
msg = append(msg, fmt.Sprintf("\t- https://github.com/%s/vitess/actions/workflows/build_docker_images.yml", repo))
}

return msg
Expand Down

0 comments on commit 3117489

Please sign in to comment.