add p11 to configs, add example of master config for sign, clean building configs from old arches and branches, add forkflow for sign
All checks were successful
Signing cloud-images / building (push) Successful in 5m43s
All checks were successful
Signing cloud-images / building (push) Successful in 5m43s
This commit is contained in:
parent
9a42b17608
commit
860494ac3e
@ -2,7 +2,7 @@ name: Building cloud-images
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- 'build*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
building:
|
building:
|
||||||
|
51
.gitea/workflows/signing.yaml
Normal file
51
.gitea/workflows/signing.yaml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
name: Signing cloud-images
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'sign*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
building:
|
||||||
|
runs-on: alt-sisyphus
|
||||||
|
steps:
|
||||||
|
- name: Configure ssh
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh/
|
||||||
|
echo "$SSH_KEY" > ~/.ssh/builder.key
|
||||||
|
chmod 600 ~/.ssh/builder.key
|
||||||
|
echo "SSH_USER=$SSH_USER, SSH_HOST=$SSH_HOST, SSH_TAISHAN_USER=$SSH_T_USER, SSH_TAISHAN_HOST=$SSH_T_HOST, SSH_TAISHAN_PORT=$SSH_T_PORT"
|
||||||
|
#> ~/.ssh/known_hosts #SSH_KH: ${{ secrets.BUILDER_SSH_KH }}
|
||||||
|
cat >>~/.ssh/config <<END
|
||||||
|
Host builder
|
||||||
|
HostName $SSH_HOST
|
||||||
|
User $SSH_USER
|
||||||
|
IdentityFile ~/.ssh/builder.key
|
||||||
|
StrictHostKeyChecking no
|
||||||
|
Host taishan
|
||||||
|
HostName $SSH_T_HOST
|
||||||
|
User $SSH_T_USER
|
||||||
|
Port $SSH_T_PORT
|
||||||
|
IdentityFile ~/.ssh/builder.key
|
||||||
|
StrictHostKeyChecking no
|
||||||
|
END
|
||||||
|
env:
|
||||||
|
SSH_USER: ${{ secrets.BUILDER_SSH_USER }}
|
||||||
|
SSH_KEY: ${{ secrets.BUILDER_SSH_KEY }}
|
||||||
|
SSH_HOST: ${{ secrets.BUILDER_SSH_HOST }}
|
||||||
|
SSH_T_USER: ${{ secrets.TAISHAN_SSH_USER }}
|
||||||
|
SSH_T_PORT: ${{ secrets.TAISHAN_SSH_PORT }}
|
||||||
|
SSH_T_HOST: ${{ secrets.TAISHAN_SSH_HOST }}
|
||||||
|
- name: Display Python version
|
||||||
|
run: ssh builder 'python3 --version'
|
||||||
|
- name: Check script folder
|
||||||
|
run: |
|
||||||
|
ssh builder 'ls -a cloud-build/'
|
||||||
|
- name: Update building script from git
|
||||||
|
run: |
|
||||||
|
ssh builder 'cd cloud-build && git pull -f origin configs --rebase'
|
||||||
|
- name: Run sign script
|
||||||
|
run: |
|
||||||
|
ssh builder 'cd cloud-build && ./cloud-build.py --built-images-dir ~/images --stages copy_external_files sign sync -c ~/sign-config/master.yaml'
|
||||||
|
- name: Check scripts result for x86
|
||||||
|
run: |
|
||||||
|
ssh builder 'ls -a proto/Sisyphus/cloud/x86_64/'
|
@ -66,6 +66,10 @@ branches:
|
|||||||
arches:
|
arches:
|
||||||
aarch64:
|
aarch64:
|
||||||
branding: alt-starterkit
|
branding: alt-starterkit
|
||||||
|
p11:
|
||||||
|
arches:
|
||||||
|
aarch64:
|
||||||
|
branding: alt-starterkit
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
machine_id:
|
machine_id:
|
||||||
|
@ -41,8 +41,6 @@ images:
|
|||||||
scripts:
|
scripts:
|
||||||
- securetty
|
- securetty
|
||||||
- netsharedpath
|
- netsharedpath
|
||||||
exclude_branches:
|
|
||||||
- c8
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
Sisyphus:
|
Sisyphus:
|
||||||
@ -54,6 +52,11 @@ branches:
|
|||||||
i586:
|
i586:
|
||||||
x86_64:
|
x86_64:
|
||||||
branding: alt-starterkit
|
branding: alt-starterkit
|
||||||
|
p11:
|
||||||
|
arches:
|
||||||
|
i586:
|
||||||
|
x86_64:
|
||||||
|
branding: alt-starterkit
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
securetty:
|
securetty:
|
||||||
|
@ -13,12 +13,7 @@ images:
|
|||||||
kinds:
|
kinds:
|
||||||
- qcow2c
|
- qcow2c
|
||||||
exclude_arches:
|
exclude_arches:
|
||||||
- aarch64
|
|
||||||
- armh
|
|
||||||
- ppc64le
|
|
||||||
- i586
|
- i586
|
||||||
exclude_branches:
|
|
||||||
- c8
|
|
||||||
rename:
|
rename:
|
||||||
regex: '(.*)\.qcow2c$'
|
regex: '(.*)\.qcow2c$'
|
||||||
to: '\1.qcow2'
|
to: '\1.qcow2'
|
||||||
@ -27,13 +22,7 @@ images:
|
|||||||
kinds:
|
kinds:
|
||||||
- qcow2c
|
- qcow2c
|
||||||
exclude_arches:
|
exclude_arches:
|
||||||
- aarch64
|
|
||||||
- armh
|
|
||||||
- ppc64le
|
|
||||||
- i586
|
- i586
|
||||||
exclude_branches:
|
|
||||||
- p8
|
|
||||||
- c8
|
|
||||||
#tests:
|
#tests:
|
||||||
#- method: prog(cloud-build-test-cloud)
|
#- method: prog(cloud-build-test-cloud)
|
||||||
rename:
|
rename:
|
||||||
@ -72,9 +61,11 @@ branches:
|
|||||||
arches:
|
arches:
|
||||||
i586:
|
i586:
|
||||||
x86_64:
|
x86_64:
|
||||||
# aarch64:
|
branding: alt-starterkit
|
||||||
# ppc64le:
|
p11:
|
||||||
# armh:
|
arches:
|
||||||
|
i586:
|
||||||
|
x86_64:
|
||||||
branding: alt-starterkit
|
branding: alt-starterkit
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
|
88
configs/example_master.yaml
Normal file
88
configs/example_master.yaml
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
---
|
||||||
|
remote: '/home/builder/proto/{branch}/cloud/{arch}'
|
||||||
|
key: <VALUE>
|
||||||
|
repository_url: http://mirror.yandex.ru/altlinux/{branch}/branch
|
||||||
|
try_build_all: True
|
||||||
|
log_level: debug
|
||||||
|
|
||||||
|
external_files: '~/external-files'
|
||||||
|
|
||||||
|
rebuild_after:
|
||||||
|
days: 99999
|
||||||
|
|
||||||
|
images:
|
||||||
|
rootfs-minimal:
|
||||||
|
target: ve/docker
|
||||||
|
kinds:
|
||||||
|
- tar.xz
|
||||||
|
rootfs-systemd:
|
||||||
|
target: ve/systemd-networkd
|
||||||
|
kinds:
|
||||||
|
- tar.xz
|
||||||
|
rootfs-systemd-etcnet:
|
||||||
|
target: ve/systemd-etcnet
|
||||||
|
kinds:
|
||||||
|
- tar.xz
|
||||||
|
rootfs-sysvinit:
|
||||||
|
target: ve/sysvinit-etcnet
|
||||||
|
kinds:
|
||||||
|
- tar.xz
|
||||||
|
exclude_branches:
|
||||||
|
- c8
|
||||||
|
opennebula:
|
||||||
|
target: vm/opennebula-systemd
|
||||||
|
kinds:
|
||||||
|
- qcow2
|
||||||
|
exclude_arches:
|
||||||
|
- armh
|
||||||
|
- ppc64le
|
||||||
|
- i586
|
||||||
|
exclude_branches:
|
||||||
|
- c8
|
||||||
|
cloud:
|
||||||
|
target: vm/cloud-systemd
|
||||||
|
kinds:
|
||||||
|
- qcow2
|
||||||
|
exclude_arches:
|
||||||
|
- armh
|
||||||
|
- ppc64le
|
||||||
|
- i586
|
||||||
|
exclude_branches:
|
||||||
|
- c8
|
||||||
|
workstation-cloud:
|
||||||
|
target: vm/alt-workstation-cloud
|
||||||
|
kinds:
|
||||||
|
- qcow2c
|
||||||
|
exclude_arches:
|
||||||
|
- armh
|
||||||
|
- ppc64le
|
||||||
|
- i586
|
||||||
|
exclude_branches:
|
||||||
|
- p8
|
||||||
|
- c8
|
||||||
|
# rename:
|
||||||
|
# regex: '(.*)\.qcow2c$'
|
||||||
|
# to: '\1.qcow2'
|
||||||
|
|
||||||
|
branches:
|
||||||
|
Sisyphus:
|
||||||
|
arches:
|
||||||
|
i586:
|
||||||
|
x86_64:
|
||||||
|
aarch64:
|
||||||
|
ppc64le:
|
||||||
|
p10:
|
||||||
|
arches:
|
||||||
|
i586:
|
||||||
|
x86_64:
|
||||||
|
aarch64:
|
||||||
|
ppc64le:
|
||||||
|
armh:
|
||||||
|
p11:
|
||||||
|
arches:
|
||||||
|
i586:
|
||||||
|
x86_64:
|
||||||
|
aarch64:
|
||||||
|
ppc64le:
|
||||||
|
armh:
|
||||||
|
...
|
Loading…
x
Reference in New Issue
Block a user