diff options
author | Egor Tensin <egor@tensin.name> | 2025-09-09 14:38:04 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2025-09-09 14:44:12 +0200 |
commit | 34b109bd747c7b9d30c9f78e8f0bf70ce9de10b9 (patch) | |
tree | eada6d237e3c4881b0cc1dd5c6d04a35c45b916f /.github/workflows/infra.yml | |
parent | workflows: add infra job (diff) | |
download | maintenance-34b109bd747c7b9d30c9f78e8f0bf70ce9de10b9.tar.gz maintenance-34b109bd747c7b9d30c9f78e8f0bf70ce9de10b9.zip |
workflows: split things into different workflows
Diffstat (limited to '.github/workflows/infra.yml')
-rw-r--r-- | .github/workflows/infra.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/infra.yml b/.github/workflows/infra.yml new file mode 100644 index 0000000..cb029d9 --- /dev/null +++ b/.github/workflows/infra.yml @@ -0,0 +1,37 @@ +name: infra + +on: + workflow_call: + workflow_dispatch: + +jobs: + maintenance: + runs-on: ubuntu-latest + env: + AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}' + AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' + DIGITALOCEAN_TOKEN: '${{ secrets.DIGITALOCEAN_TOKEN }}' + YC_SERVICE_ACCOUNT_KEY_FILE: '${{ secrets.YC_SERVICE_ACCOUNT_KEY_FILE }}' + steps: + - name: Set up Terraform + uses: hashicorp/setup-terraform@v3 + - name: Add SSH key + run: | + mkdir -p ~/.ssh + cat > ~/.ssh/config <<'EOF' + StrictHostKeyChecking no + EOF + cat > ~/.ssh/id_ed25519 <<'EOF' + ${{ secrets.SSH_KEY }} + EOF + chmod 0600 ~/.ssh/id_ed25519 + - name: Checkout + run: | + git clone -q ssh://git@bitbucket.org/egor-tensin/infra.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 maintenance |