cloud-build/configs/cb-vm.yaml

100 lines
1.7 KiB
YAML
Raw Normal View History

2021-06-28 21:40:42 +03:00
---
remote: 'cloud@172.16.0.2:/home/cloud/images/{branch}/{arch}'
2022-01-27 21:43:16 +03:00
repository_url: copy:///space/ALT/{branch}
2021-06-28 21:40:42 +03:00
try_build_all: True
log_level: debug
rebuild_after:
days: 5
images:
opennebula:
target: vm/opennebula-systemd
kinds:
- qcow2c
exclude_arches:
- aarch64
- armh
- ppc64le
exclude_branches:
- c8
2022-02-06 23:13:34 +03:00
scripts:
- machine_id
2021-06-28 21:40:42 +03:00
rename:
regex: '(.*)\.qcow2c$'
to: '\1.qcow2'
cloud:
target: vm/cloud-systemd
kinds:
- qcow2c
exclude_arches:
- aarch64
- armh
- ppc64le
exclude_branches:
- p8
- c8
2022-02-06 23:13:34 +03:00
scripts:
- machine_id
2021-06-28 21:40:42 +03:00
tests:
- method: prog(cloud-build-test-cloud)
rename:
regex: '(.*)\.qcow2c$'
to: '\1.qcow2'
branches:
Sisyphus:
arches:
i586:
x86_64:
# aarch64:
# ppc64le:
# armh:
p10:
arches:
i586:
x86_64:
# aarch64:
# ppc64le:
# armh:
branding: alt-starterkit
p9:
arches:
i586:
x86_64:
# aarch64:
# ppc64le:
# armh:
branding: alt-starterkit
scripts:
2022-02-06 23:13:34 +03:00
machine_id:
contents: |
#!/bin/sh -exu
etc_machine_id=/etc/machine-id
dbus_machine_id=/var/lib/dbus/machine-id
rm -f "$etc_machine_id" "$dbus_machine_id"
touch "$etc_machine_id"
global: no
number: 90
2021-06-28 21:40:42 +03:00
securetty:
contents: |
#!/bin/sh
echo pts/0 >> /etc/securetty
echo pts/1 >> /etc/securetty
global: no
number: 1
apt_sources:
contents: |
#!/bin/sh
repo_source=/etc/apt/sources.list.d/altsp.list
[ -s "$repo_source" ] || exit 0
sed -i -E 's/^\s*#(rpm.*http)/\1/' "$repo_source"
global: no
number: 80
...