From 9a799dca3b49d6df78b101753081caa5ff160ea1 Mon Sep 17 00:00:00 2001 From: Zhefeng C <38037704+catbro666@users.noreply.github.com> Date: Mon, 24 Jul 2023 20:34:04 +0800 Subject: [PATCH] chore(ci): upgrade test should use the latest bin/kong in NEW_CONTAINER (#11265) (cherry picked from commit 13c8d9a96c24028114d062e9ae600bf485d51a47) --- .github/workflows/upgrade-tests.yml | 1 + scripts/upgrade-tests/test-upgrade-path.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/upgrade-tests.yml b/.github/workflows/upgrade-tests.yml index 5ba11e155a46..a49f2dcbe10f 100644 --- a/.github/workflows/upgrade-tests.yml +++ b/.github/workflows/upgrade-tests.yml @@ -3,6 +3,7 @@ name: Upgrade Tests on: pull_request: paths: + - 'scripts/upgrade-tests/**' - 'kong/db/migrations/**' - 'spec/05-migration/**' - 'kong/enterprise_edition/db/migrations/**' diff --git a/scripts/upgrade-tests/test-upgrade-path.sh b/scripts/upgrade-tests/test-upgrade-path.sh index 14ffee9acea6..944dd29d5455 100755 --- a/scripts/upgrade-tests/test-upgrade-path.sh +++ b/scripts/upgrade-tests/test-upgrade-path.sh @@ -101,6 +101,7 @@ function build_containers() { docker exec -w /kong $OLD_CONTAINER make dev CRYPTO_DIR=/usr/local/kong # Kong version >= 3.3 moved non Bazel-built dev setup to make dev-legacy docker exec -w /kong $NEW_CONTAINER make dev-legacy CRYPTO_DIR=/usr/local/kong + docker exec ${NEW_CONTAINER} ln -sf /kong/bin/kong /usr/local/bin/kong } function initialize_test_list() {