Skip to content

Commit

Permalink
Use curl to get latest release of NM
Browse files Browse the repository at this point in the history
  • Loading branch information
grischperl committed Dec 29, 2023
1 parent acc5b7d commit 1e6bcb4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1e6bcb4

Please sign in to comment.