mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-25 23:06:08 -05:00
fix e2e latest debug image selection
This commit is contained in:
parent
90e0f41bde
commit
a318a82968
@ -97,8 +97,7 @@ runs:
|
|||||||
gcp)
|
gcp)
|
||||||
if [ "${{ inputs.coreosImage == 'debug-latest' }}" = true ]
|
if [ "${{ inputs.coreosImage == 'debug-latest' }}" = true ]
|
||||||
then
|
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~constellation-debug-v\d+-\d+-\d+" --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:${GCP_LATEST_FAMILY}" --sort-by=creationTimestamp --format="table(name)" | tail -n 1)
|
|
||||||
GCP_IMAGE="projects/constellation-images/global/images/${GCP_IMAGE_NAME}"
|
GCP_IMAGE="projects/constellation-images/global/images/${GCP_IMAGE_NAME}"
|
||||||
else
|
else
|
||||||
GCP_IMAGE=${{ inputs.coreosImage }}
|
GCP_IMAGE=${{ inputs.coreosImage }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user