diff options
author | Egor Tensin <egor@tensin.name> | 2025-09-15 12:43:49 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2025-09-15 13:08:01 +0200 |
commit | df5d9858e0a1308664425dd02478116719e077a0 (patch) | |
tree | ad16000563fe23472caad2e42204199bffb88956 /.github/workflows | |
parent | workflows/yandex-cloud-cli-bin: move all the crazy comments to the top (diff) | |
download | maintenance-df5d9858e0a1308664425dd02478116719e077a0.tar.gz maintenance-df5d9858e0a1308664425dd02478116719e077a0.zip |
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/yandex-cloud-cli-bin.yml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/.github/workflows/yandex-cloud-cli-bin.yml b/.github/workflows/yandex-cloud-cli-bin.yml index 0158bba..f57462b 100644 --- a/.github/workflows/yandex-cloud-cli-bin.yml +++ b/.github/workflows/yandex-cloud-cli-bin.yml @@ -23,25 +23,25 @@ jobs: - name: Install dependencies run: | pacman -Sy --noconfirm git openssh + - name: Add builder user + run: | + useradd -m -s /bin/bash builder - name: Add SSH key run: | - mkdir -p /root/.ssh/ - cat > /root/.ssh/config <<'EOF' + mkdir -p /home/builder/.ssh/ + cat > /home/builder/.ssh/config <<'EOF' StrictHostKeyChecking no EOF - cat > /root/.ssh/id_ed25519 <<'EOF' + cat > /home/builder/.ssh/id_ed25519 <<'EOF' ${{ secrets.SSH_KEY }} EOF - chmod 0600 /root/.ssh/id_ed25519 - - name: Checkout - run: | - git clone -q ssh://aur@aur.archlinux.org/yandex-cloud-cli-bin.git - chmod -R o+w yandex-cloud-cli-bin + chown -R builder:builder /home/builder/.ssh + chmod 0600 /home/builder/.ssh/id_ed25519 - name: Configure git run: | - git -C yandex-cloud-cli-bin config --local user.name 'Egor Tensin' - git -C yandex-cloud-cli-bin config --local user.email 'egor@tensin.name' + runuser -u builder -- git config --global user.name 'Egor Tensin' + runuser -u builder -- git config --global user.email 'egor@tensin.name' - name: Run maintenance run: | - git config --system --add safe.directory "$( pwd )/yandex-cloud-cli-bin" - runuser -u nobody -- make -C yandex-cloud-cli-bin maintenance + runuser -u builder -- git clone -q ssh://aur@aur.archlinux.org/yandex-cloud-cli-bin.git /home/builder/yandex-cloud-cli-bin + runuser -u builder -- make -C /home/builder/yandex-cloud-cli-bin maintenance |