Skip to content

Commit c4609ab

Browse files
authored
Merge pull request #161 from cevich/dedicated_vm_images
Cirrus: Use dedicated VM image for automation
2 parents 4f78fe0 + d5baf8a commit c4609ab

File tree

1 file changed

+31
-44
lines changed

1 file changed

+31
-44
lines changed

.cirrus.yml

Lines changed: 31 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,8 @@ env:
1919
UBUNTU_NAME: "ubuntu-2110"
2020

2121
# Google-cloud VM Images
22-
IMAGE_SUFFIX: "c4560539387953152"
23-
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
24-
PRIOR_FEDORA_CACHE_IMAGE_NAME: "prior-fedora-${IMAGE_SUFFIX}"
25-
UBUNTU_CACHE_IMAGE_NAME: "ubuntu-${IMAGE_SUFFIX}"
26-
27-
# Container FQIN's
28-
FEDORA_CONTAINER_FQIN: "quay.io/libpod/fedora_podman:${IMAGE_SUFFIX}"
29-
PRIOR_FEDORA_CONTAINER_FQIN: "quay.io/libpod/prior-fedora_podman:${IMAGE_SUFFIX}"
30-
UBUNTU_CONTAINER_FQIN: "quay.io/libpod/ubuntu_podman:${IMAGE_SUFFIX}"
22+
IMAGE_SUFFIX: "c4764556961513472"
23+
FEDORA_CACHE_IMAGE_NAME: "fedora-podman-py-${IMAGE_SUFFIX}"
3124

3225

3326
gcp_credentials: ENCRYPTED[0c639039cdd3a9a93fac7746ea1bf366d432e5ff3303bf293e64a7ff38dee85fd445f71625fa5626dc438be2b8efe939]
@@ -42,34 +35,6 @@ gce_instance:
4235
disk: 200 # Required for performance reasons
4336
image_name: "${FEDORA_CACHE_IMAGE_NAME}"
4437

45-
46-
# This task is critical. It updates the "last-used by" timestamp stored
47-
# in metadata for all VM images. This mechanism functions in tandem with
48-
# an out-of-band pruning operation to remove disused VM images.
49-
meta_task:
50-
alias: meta
51-
name: "VM img. keepalive"
52-
53-
container: &smallcontainer
54-
image: "quay.io/libpod/imgts:$IMAGE_SUFFIX"
55-
cpu: 1
56-
memory: 1
57-
58-
env:
59-
IMGNAMES: >-
60-
${FEDORA_CACHE_IMAGE_NAME}
61-
${PRIOR_FEDORA_CACHE_IMAGE_NAME}
62-
${UBUNTU_CACHE_IMAGE_NAME}
63-
BUILDID: "${CIRRUS_BUILD_ID}"
64-
REPOREF: "${CIRRUS_REPO_NAME}"
65-
GCPJSON: ENCRYPTED[e8a53772eff6e86bf6b99107b6e6ee3216e2ca00c36252ae3bd8cb29d9b903ffb2e1a1322ea810ca251b04f833b8f8d9]
66-
GCPNAME: ENCRYPTED[fb878daf188d35c2ed356dc777267d99b59863ff3abf0c41199d562fca50ba0668fdb0d87e109c9eaa2a635d2825feed]
67-
GCPPROJECT: "libpod-218412"
68-
69-
clone_script: &noop mkdir -p $CIRRUS_WORKING_DIR
70-
script: /usr/local/bin/entrypoint.sh
71-
72-
7338
gating_task:
7439
name: "Gating test"
7540
alias: gating
@@ -78,12 +43,6 @@ gating_task:
7843
# for proper setting of EPOCH_TEST_COMMIT value, required by validation tools.
7944
only_if: $CIRRUS_PR != ""
8045

81-
# Runs within Cirrus's "community cluster"
82-
container:
83-
image: "$FEDORA_CONTAINER_FQIN"
84-
cpu: 4
85-
memory: 12
86-
8746
timeout_in: 20m
8847

8948
env:
@@ -122,6 +81,29 @@ latest_task:
12281
- ${SCRIPT_BASE}/enable_podman.sh
12382
- ${SCRIPT_BASE}/test.sh
12483

84+
# This task is critical. It updates the "last-used by" timestamp stored
85+
# in metadata for all VM images. This mechanism functions in tandem with
86+
# an out-of-band pruning operation to remove disused VM images.
87+
meta_task:
88+
alias: meta
89+
name: "VM img. keepalive"
90+
91+
container: &smallcontainer
92+
image: "quay.io/libpod/imgts:$IMAGE_SUFFIX"
93+
cpu: 1
94+
memory: 1
95+
96+
env:
97+
IMGNAMES: ${FEDORA_CACHE_IMAGE_NAME}
98+
BUILDID: "${CIRRUS_BUILD_ID}"
99+
REPOREF: "${CIRRUS_REPO_NAME}"
100+
GCPJSON: ENCRYPTED[e8a53772eff6e86bf6b99107b6e6ee3216e2ca00c36252ae3bd8cb29d9b903ffb2e1a1322ea810ca251b04f833b8f8d9]
101+
GCPNAME: ENCRYPTED[fb878daf188d35c2ed356dc777267d99b59863ff3abf0c41199d562fca50ba0668fdb0d87e109c9eaa2a635d2825feed]
102+
GCPPROJECT: "libpod-218412"
103+
104+
clone_script: &noop mkdir -p $CIRRUS_WORKING_DIR
105+
script: /usr/local/bin/entrypoint.sh
106+
125107
# Status aggregator for all tests. This task simply ensures a defined
126108
# set of tasks all passed, and allows confirming that based on the status
127109
# of this task.
@@ -135,6 +117,11 @@ success_task:
135117
- gating
136118
- test
137119
- latest
138-
container: *smallcontainer
120+
container:
121+
image: quay.io/libpod/alpine:latest
122+
cpu: 1
123+
memory: 1
124+
env:
125+
CIRRUS_SHELL: "/bin/sh"
139126
clone_script: *noop
140127
script: *noop

0 commit comments

Comments
 (0)