summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2022-08-05 11:02:20 -0400
committerChris Evich <cevich@redhat.com>2022-08-05 11:27:41 -0400
commitfb858433248547cb94acc459b4d46f50dcf61e86 (patch)
tree869612686f101debdfc0589a60c348d8b8135056
parent4b0343efebbbc483fd66aeabb83ae4fb31fc2203 (diff)
downloadpodman-fb858433248547cb94acc459b4d46f50dcf61e86.tar.gz
podman-fb858433248547cb94acc459b4d46f50dcf61e86.tar.bz2
podman-fb858433248547cb94acc459b4d46f50dcf61e86.zip
Cirrus: Improve CI VM image updates for EC2
AWS EC2 keys VM images by an utterly unreadable, horrible to use, generated "AMI ID" value. This is very error prone for humans in practice, since it's impossible to tell one image from the next by eye. Worse, EC2 permits duplicate name-tag values, complicating image specification further. However fortunately, Cirrus-CI recently implemented a feature by which AMI's may be referenced by a name-tag search - choosing the most recent AMI found. Since the `containers/automation_images` build workflow always assigns a unique name + `$IMAGE_SUFFIX` value, we can simply re-use it for both AWS and GCP image specification. In other words as of this commit, specifying new CI VM images can be done by simply updating the `$IMAGE_SUFFIX` value as we've always done. No need to call out a specific AMI ID just for EC2 tasks. Signed-off-by: Chris Evich <cevich@redhat.com>
-rw-r--r--.cirrus.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index b9c284002..75cdcf5cf 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -32,12 +32,12 @@ env:
# Image identifiers
IMAGE_SUFFIX: "c6211193021923328"
- FEDORA_AMI_ID: "ami-06a41d8a81ab56afa"
- # Complete image names
+ # EC2 images
+ FEDORA_AMI: "fedora-aws-${IMAGE_SUFFIX}"
+ # GCP Images
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
PRIOR_FEDORA_CACHE_IMAGE_NAME: "prior-fedora-${IMAGE_SUFFIX}"
UBUNTU_CACHE_IMAGE_NAME: "ubuntu-${IMAGE_SUFFIX}"
-
# Container FQIN's
FEDORA_CONTAINER_FQIN: "quay.io/libpod/fedora_podman:${IMAGE_SUFFIX}"
PRIOR_FEDORA_CONTAINER_FQIN: "quay.io/libpod/prior-fedora_podman:${IMAGE_SUFFIX}"
@@ -610,7 +610,7 @@ podman_machine_task:
TEST_FLAVOR: "machine"
PRIV_NAME: "rootless" # intended use-case
DISTRO_NV: "${FEDORA_NAME}"
- VM_IMAGE_NAME: "${FEDORA_AMI_ID}"
+ VM_IMAGE_NAME: "${FEDORA_AMI}"
clone_script: *get_gosrc
setup_script: *setup
main_script: *main