Add 2 boxes for testing #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Provision Dev Boxes | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: provision | |
| cancel-in-progress: true | |
| jobs: | |
| provision: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Install dependencies | |
| run: pip3 install -r scripts/requirements.txt | |
| - name: Install hcloud CLI | |
| run: | | |
| wget -q https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz | |
| tar -xzf hcloud-linux-amd64.tar.gz | |
| sudo mv hcloud /usr/local/bin/ | |
| - name: Teardown deleted machines | |
| env: | |
| HCLOUD_TOKEN: ${{ secrets.HETZNER_API_TOKEN }} | |
| run: python3 scripts/teardown.py | |
| - name: Provision dev boxes | |
| env: | |
| HCLOUD_TOKEN: ${{ secrets.HETZNER_API_TOKEN }} | |
| run: python3 scripts/provision.py |