Skip to content

Commit

Permalink
fix(per-commit) add a nightly label
Browse files Browse the repository at this point in the history
Historically, kong-build-tools would update the `latest` tag
for each new per-commit release. Since acfda16, that is no longer the
case. Given it's useful to have a generic name for the latest build of
kong - and we want to avoid pushing a tag named `latest`, so as to avoid
surprises when users pull `kong/kong`- this commit adds a `nightly` tag.
Such tag will be used, for example, in decK's CI, where we want to test
against the latest available build of Kong.
  • Loading branch information
gszr committed Jun 30, 2022
1 parent 28ef71b commit 976490b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions release-kong.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ DIST_FILE="$KONG_PACKAGE_NAME-$KONG_VERSION$OUTPUT_FILE_SUFFIX"


function push_docker_images() {
KONG_BRANCH=${KONG_BRANCH:-master}

docker tag \
"localhost:5000/kong-$RESTY_IMAGE_BASE-$RESTY_IMAGE_TAG" \
"$DOCKER_REPOSITORY:$ARCHITECTURE-$KONG_VERSION"
Expand All @@ -74,6 +76,11 @@ function push_docker_images() {
-a "$DOCKER_REPOSITORY:$KONG_VERSION-$RESTY_IMAGE_BASE" \
"$DOCKER_REPOSITORY:$ARCHITECTURE-$KONG_VERSION"
docker manifest push "$DOCKER_REPOSITORY:$KONG_VERSION-$RESTY_IMAGE_BASE"

docker manifest create \
-a "$DOCKER_REPOSITORY:$KONG_BRANCH" \
"$DOCKER_REPOSITORY:$ARCHITECTURE-$KONG_VERSION"
docker manifest push "$DOCKER_REPOSITORY:$KONG_BRANCH"
}


Expand Down

0 comments on commit 976490b

Please sign in to comment.