From a318a8296881af1e14cf936f95843b4b98c1548c Mon Sep 17 00:00:00 2001 From: Leonard Cohnen Date: Tue, 13 Sep 2022 10:01:44 +0200 Subject: [PATCH] fix e2e latest debug image selection --- .github/actions/constellation_create/action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/actions/constellation_create/action.yml b/.github/actions/constellation_create/action.yml index 072cba5fb..2ef32b748 100644 --- a/.github/actions/constellation_create/action.yml +++ b/.github/actions/constellation_create/action.yml @@ -97,8 +97,7 @@ runs: gcp) if [ "${{ inputs.coreosImage == 'debug-latest' }}" = true ] then - GCP_LATEST_FAMILY=$(gcloud compute images list --project constellation-images --filter="family ~ constellation-debug-v\d+-\d+-\d+" --format="value(family)" | sort --version-sort | tail -n 1) - GCP_IMAGE_NAME=$(gcloud compute images list --project constellation-images --filter="name ~ constellation-\d{10} AND family:${GCP_LATEST_FAMILY}" --sort-by=creationTimestamp --format="table(name)" | tail -n 1) + GCP_IMAGE_NAME=$(gcloud compute images list --project constellation-images --filter="name ~ constellation-\d{10} AND family~constellation-debug-v\d+-\d+-\d+" --sort-by=creationTimestamp --format="table(name)" | tail -n 1) GCP_IMAGE="projects/constellation-images/global/images/${GCP_IMAGE_NAME}" else GCP_IMAGE=${{ inputs.coreosImage }}