diff options
author | Egor Tensin <egor@tensin.name> | 2025-09-09 11:15:29 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2025-09-09 13:47:54 +0200 |
commit | e9ccfdd5502cf66bce2d15f5957ac7bbfcad3425 (patch) | |
tree | 2ad3a31181742debcab4275488c8086a09cbf370 | |
parent | repurpose the repo (diff) | |
download | maintenance-e9ccfdd5502cf66bce2d15f5957ac7bbfcad3425.tar.gz maintenance-e9ccfdd5502cf66bce2d15f5957ac7bbfcad3425.zip |
workflows: add yandex-cloud-cli-bin
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/main.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..63a320b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,37 @@ +name: Maintenance + +on: + - push + - workflow_dispatch + +jobs: + yandex-cloud-cli-bin: + runs-on: ubuntu-latest + container: + image: archlinux:base-devel + steps: + - name: Install dependencies + run: | + pacman -Sy --noconfirm git openssh + + mkdir -p /root/.ssh + cat > /root/.ssh/config <<'EOF' + StrictHostKeyChecking no + EOF + - name: Add SSH key + run: | + mkdir -p /root/.ssh/ + cat > /root/.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 + - name: Run maintenance + run: | + git config --system --add safe.directory "$( pwd )/yandex-cloud-cli-bin" + # Stupid makepkg hard forbids running as root, which is stupid, which + # is why I'm doing all of that stupidity here and above. + runuser -u nobody -- make -C yandex-cloud-cli-bin maintenance |