Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add f40 image support in gcp and openstack playbooks #9

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion tools/upload_gcp_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
os: "fedora-rawhide"
image_url:
fedora-rawhide: https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images
fedora-39: https://dl.fedoraproject.org/pub/fedora/linux/development/39/Cloud/x86_64/images
fedora-40: https://dl.fedoraproject.org/pub/fedora/linux/development/40/Cloud/x86_64/images
fedora-39: https://dl.fedoraproject.org/pub/fedora/linux/releases/39/Cloud/x86_64/images
fedora-38: https://dl.fedoraproject.org/pub/fedora/linux/releases/38/Cloud/x86_64/images
fedora-37: https://dl.fedoraproject.org/pub/fedora/linux/releases/37/Cloud/x86_64/images
# image name must be a match of regex '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}'
gcp_image_name:
fedora-rawhide: "kite-image-fedora-rawhide"
fedora-40: "kite-image-fedora-40"
fedora-39: "kite-image-fedora-39"
fedora-38: "kite-image-fedora-38"
fedora-37: "kite-image-fedora-37"
Expand All @@ -32,6 +34,17 @@
- os == "fedora-rawhide"
- result_file.changed

- name: get latest Fedora 40 images
shell: curl -s {{ image_url[os] }}/ | grep -ioE '>Fedora-Cloud-Base-GCP-40-.*.x86_64.tar.gz<' | tr -d '><'
register: result_file
when: os == "fedora-40"

- set_fact:
image_file_name: "{{ result_file.stdout }}"
when:
- os == "fedora-40"
- result_file.changed

- name: get latest Fedora 39 images
shell: curl -s {{ image_url[os] }}/ | grep -ioE '>Fedora-Cloud-Base-GCP-39-.*.x86_64.tar.gz<' | tr -d '><'
register: result_file
Expand Down
16 changes: 15 additions & 1 deletion tools/upload_openstack_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
image_url:
fedora-rawhide: https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images
fedora-eln: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/BaseOS/x86_64/images
fedora-39: https://dl.fedoraproject.org/pub/fedora/linux/development/39/Cloud/x86_64/images
fedora-40: https://dl.fedoraproject.org/pub/fedora/linux/development/40/Cloud/x86_64/images
fedora-39: https://dl.fedoraproject.org/pub/fedora/linux/releases/39/Cloud/x86_64/images
fedora-38: https://dl.fedoraproject.org/pub/fedora/linux/releases/38/Cloud/x86_64/images
fedora-37: https://dl.fedoraproject.org/pub/fedora/linux/releases/37/Cloud/x86_64/images
centos-stream-9: https://odcs.stream.centos.org/production/latest-CentOS-Stream/compose/BaseOS/x86_64/images
Expand All @@ -20,6 +21,7 @@
fedora-37: edge-fedora-37
fedora-38: edge-fedora-38
fedora-39: edge-fedora-39
fedora-40: edge-fedora-40
fedora-rawhide: edge-fedora-rawhide
fedora-eln: edge-fedora-eln
os_distro:
Expand All @@ -28,6 +30,7 @@
fedora-37: fedora
fedora-38: fedora
fedora-39: fedora
fedora-40: fedora
fedora-rawhide: fedora
os_network:
rhos-01: "shared_net_9"
Expand Down Expand Up @@ -71,6 +74,17 @@
image_name: "{{ result_file.stdout }}"
when: result_file.changed

- name: get latest Fedora 40 images
shell: curl -s {{ image_url[os] }}/ | grep -ioE '>Fedora-Cloud-Base-40-.*.x86_64.qcow2<' | tr -d '><'
register: result_file
when: os == "fedora-40"

- set_fact:
image_name: "{{ result_file.stdout }}"
when:
- os == "fedora-40"
- result_file.changed

- name: get latest Fedora 39 images
shell: curl -s {{ image_url[os] }}/ | grep -ioE '>Fedora-Cloud-Base-39-.*.x86_64.qcow2<' | tr -d '><'
register: result_file
Expand Down
Loading