aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/infra-metal.yml
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-24 07:38:33 +0200
committerEgor Tensin <egor@tensin.name>2026-05-24 07:38:33 +0200
commitccc07a9bff5dcbbc987ae84dcda72ff0db4be276 (patch)
tree01b2244c232afd3be8f74f6835bad11029317045 /.github/workflows/infra-metal.yml
parentworkflows: move out cgitize (diff)
downloadmaintenance-ccc07a9bff5dcbbc987ae84dcda72ff0db4be276.tar.gz
maintenance-ccc07a9bff5dcbbc987ae84dcda72ff0db4be276.zip
workflows: move out infra workflows
Diffstat (limited to '.github/workflows/infra-metal.yml')
-rw-r--r--.github/workflows/infra-metal.yml51
1 files changed, 0 insertions, 51 deletions
diff --git a/.github/workflows/infra-metal.yml b/.github/workflows/infra-metal.yml
deleted file mode 100644
index 2be8f3e..0000000
--- a/.github/workflows/infra-metal.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: infra-metal
-
-on:
- workflow_call:
- inputs:
- limit:
- description: 'Ansible hosts'
- type: string
- default: all
- required: false
- workflow_dispatch:
- inputs:
- limit:
- description: 'Ansible hosts'
- type: string
- default: all
- required: false
-
-jobs:
- maintenance:
- runs-on: ubuntu-latest
- steps:
- - name: Set up WireGuard
- uses: egor-tensin/setup-wireguard@v1
- with:
- endpoint: '${{ secrets.WG_ENDPOINT }}'
- endpoint_public_key: '${{ secrets.WG_ENDPOINT_PUBLIC }}'
- ips: '${{ secrets.WG_IPS }}'
- allowed_ips: '${{ secrets.WG_ALLOWED_IPS }}'
- private_key: '${{ secrets.WG_PRIVATE }}'
- preshared_key: '${{ secrets.WG_PRESHARED }}'
- - name: Configure SSH
- run: |
- mkdir -p ~/.ssh
- cat > ~/.ssh/config <<'EOF'
- StrictHostKeyChecking no
- EOF
- - name: Set up ssh-agent
- uses: webfactory/ssh-agent@v0.10.0
- with:
- ssh-private-key: '${{ secrets.SSH_KEY }}'
- - name: Checkout
- run: |
- git clone -q ssh://git@bitbucket.org/egor-tensin/infra-metal.git
- - name: Configure git
- run: |
- git config --global user.name 'Egor Tensin'
- git config --global user.email 'egor@tensin.name'
- - name: Run maintenance
- run: |
- make -C infra-metal maintenance 'LIMIT=${{ inputs.limit }}'