From 230fde63ef407a4e6e949eb4550f008e767b9675 Mon Sep 17 00:00:00 2001 From: Nadezhda Fedorova Date: Wed, 6 Nov 2024 16:32:19 +0300 Subject: [PATCH] rework building workflow --- .gitea/workflows/building.yaml | 43 ++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/building.yaml b/.gitea/workflows/building.yaml index 38630b0..f0ba9e1 100644 --- a/.gitea/workflows/building.yaml +++ b/.gitea/workflows/building.yaml @@ -5,7 +5,7 @@ on: - 'build*' jobs: - building-x86: + building-x86-container: runs-on: alt-sisyphus steps: - name: Configure ssh @@ -27,13 +27,36 @@ jobs: - 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 x86 + - name: Run script for containers on x86 run: | ssh builder 'cd cloud-build && ./cloud-build.py -c ./configs/cb-ve-x86.yaml \ - --stages build test sync --create-remote-dirs' - - name: Run script for container x86 + --stages build test sync --create-remote-dirs' + + building-other-container: + runs-on: alt-sisyphus + steps: + - name: Configure ssh 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 <