rework building workflow
Some checks failed
Building cloud-images / building-other-container (push) Failing after 37s
Building cloud-images / building-x86-container (push) Failing after 28s
Building cloud-images / building-x86-vm (push) Failing after 11m5s
Building cloud-images / building-aarch (push) Failing after 1h18m40s
Some checks failed
Building cloud-images / building-other-container (push) Failing after 37s
Building cloud-images / building-x86-container (push) Failing after 28s
Building cloud-images / building-x86-vm (push) Failing after 11m5s
Building cloud-images / building-aarch (push) Failing after 1h18m40s
This commit is contained in:
parent
16125d5010
commit
230fde63ef
@ -5,7 +5,7 @@ on:
|
|||||||
- 'build*'
|
- 'build*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
building-x86:
|
building-x86-container:
|
||||||
runs-on: alt-sisyphus
|
runs-on: alt-sisyphus
|
||||||
steps:
|
steps:
|
||||||
- name: Configure ssh
|
- name: Configure ssh
|
||||||
@ -27,13 +27,36 @@ jobs:
|
|||||||
- name: Update building script from git
|
- name: Update building script from git
|
||||||
run: |
|
run: |
|
||||||
ssh builder 'cd cloud-build && git fetch origin && git pull -f origin configs --rebase'
|
ssh builder 'cd cloud-build && git fetch origin && git pull -f origin configs --rebase'
|
||||||
- name: Run script for x86
|
- name: Run script for containers on x86
|
||||||
run: |
|
run: |
|
||||||
ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/cb-ve-x86.yaml \
|
ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/cb-ve-x86.yaml \
|
||||||
--stages build test sync --create-remote-dirs'
|
--stages build test sync --create-remote-dirs'
|
||||||
- name: Run script for container x86
|
|
||||||
|
building-other-container:
|
||||||
|
runs-on: alt-sisyphus
|
||||||
|
steps:
|
||||||
|
- name: Configure ssh
|
||||||
run: |
|
run: |
|
||||||
ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/container-x86.yaml \
|
mkdir -p ~/.ssh/
|
||||||
|
echo "$SSH_KEY" > ~/.ssh/builder.key
|
||||||
|
chmod 600 ~/.ssh/builder.key
|
||||||
|
cat >>~/.ssh/config <<END
|
||||||
|
Host builder
|
||||||
|
HostName $SSH_HOST
|
||||||
|
User $SSH_USER
|
||||||
|
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 }}
|
||||||
|
- name: Update building script from git
|
||||||
|
run: |
|
||||||
|
ssh builder 'cd cloud-build && git fetch origin && git pull -f origin configs --rebase'
|
||||||
|
- name: Run script for containers on other arches
|
||||||
|
run: |
|
||||||
|
ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/cb-ve-other.yaml \
|
||||||
--stages build test sync --create-remote-dirs'
|
--stages build test sync --create-remote-dirs'
|
||||||
|
|
||||||
building-x86-vm:
|
building-x86-vm:
|
||||||
@ -60,7 +83,7 @@ jobs:
|
|||||||
- name: Update building script from git
|
- name: Update building script from git
|
||||||
run: |
|
run: |
|
||||||
ssh builder 'cd cloud-build && git fetch origin && git pull -f origin configs --rebase'
|
ssh builder 'cd cloud-build && git fetch origin && git pull -f origin configs --rebase'
|
||||||
- name: Run script for vm
|
- name: Run script for vm x86
|
||||||
run: |
|
run: |
|
||||||
ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/cb-vm.yaml \
|
ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/cb-vm.yaml \
|
||||||
--stages build test sync --create-remote-dirs'
|
--stages build test sync --create-remote-dirs'
|
||||||
@ -88,9 +111,9 @@ jobs:
|
|||||||
- name: Update building script from git
|
- name: Update building script from git
|
||||||
run: |
|
run: |
|
||||||
ssh -A abuilder "ssh builder 'cd cloud-build && git fetch origin && git pull -f origin configs --rebase'"
|
ssh -A abuilder "ssh builder 'cd cloud-build && git fetch origin && git pull -f origin configs --rebase'"
|
||||||
- name: Run script for aarch
|
- name: Run script for container on aarch
|
||||||
run: |
|
run: |
|
||||||
ssh -A abuilder "ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/cb-aarch64.yaml --stages build test sync --create-remote-dirs'"
|
ssh -A abuilder "ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/cb-ve-aarch64.yaml --stages build test sync --create-remote-dirs'"
|
||||||
- name: Run script for container aarch
|
- name: Run script for vm aarch
|
||||||
run: |
|
run: |
|
||||||
ssh -A abuilder "ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/container-aarch64.yaml --stages build test sync --create-remote-dirs'"
|
ssh -A abuilder "ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/cb-vm-aarch64.yaml --stages build test sync --create-remote-dirs'"
|
||||||
|
Loading…
Reference in New Issue
Block a user