diff --git a/.github/workflows/post-release.yaml b/.github/workflows/post-release.yaml index 05e12675db625..9641d2c00758a 100644 --- a/.github/workflows/post-release.yaml +++ b/.github/workflows/post-release.yaml @@ -94,12 +94,17 @@ jobs: git config --global user.email "noreply@github.com" git config --global user.name "GitHub" + # get Go version from go.mod + GO_VERSION=$(go mod edit -json | jq -r .Go) + # update versions in docs/config.json # for docker images replace version number after : jq --arg major "${MAJOR_VERSION}" \ --arg version "${FULL_VERSION}" \ + --arg go_version "${GO_VERSION}" \ '.variables.teleport.major_version |= $major | .variables.teleport.version |= $version | + .variables.teleport.golang |= $go_version | .variables.teleport.plugin.version |= $version | .variables.teleport.latest_oss_docker_image |= sub(":.*";":")+$version | .variables.teleport.latest_oss_debug_docker_image |= sub(":.*";":")+$version |