From 1e6bcb481545754d6ec318409980cc00c237e273 Mon Sep 17 00:00:00 2001 From: Carina Kothe Date: Fri, 29 Dec 2023 12:48:15 +0100 Subject: [PATCH] Use curl to get latest release of NM --- .github/workflows/e2e.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 26c0863..627ee59 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -64,8 +64,9 @@ jobs: - name: Deploy NATS Manager run: | - version=$(grep 'MODULE_VERSION' /home/runner/work/eventing-publisher-proxy/eventing-publisher-proxy/nats-manager/.version | cut -d'=' -f2) - make -C nats-manager deploy IMG=europe-docker.pkg.dev/kyma-project/prod/nats-manager:$version + version=$(curl -i https://github.com/kyma-project/nats-manager/releases/latest | awk -F '/' '/^location/ {print substr($NF, 1, length($NF)-1)}') + make -C nats-manager deploy IMG=$NATS_MANAGER_IMAGE:$version + echo "Using NATS Manager image:" kubectl get -n kyma-system deployment nats-manager -o=jsonpath='{$.spec.template.spec.containers[:1].image}' - name: Create NATS CR and resources and check configuration @@ -78,7 +79,9 @@ jobs: - name: Deploy Eventing Manager run: | - make -C eventing-manager deploy IMG=EVENTING_MANAGER_IMAGE:$MODULE_VERSION + version=$(grep 'MODULE_VERSION' /home/runner/work/eventing-publisher-proxy/eventing-publisher-proxy/eventing-manager/.version | cut -d'=' -f2) + make -C eventing-manager deploy IMG=$EVENTING_MANAGER_IMAGE:$version + echo "Using Eventing Manager image:" kubectl get -n kyma-system deployment eventing-manager -o=jsonpath='{$.spec.template.spec.containers[:1].image}' - name: Wait for build job to succeed