Fix doctl #68
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: 'Build and Deploy' | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| workflow_dispatch: | |
| jobs: | |
| create-droplet: | |
| name: Create and provision droplet | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| IPV4: ${{ steps.save.outputs.IPV4 }} | |
| env: | |
| SSH_FINGERPRINT: ${{ secrets.SSH_FINGERPRINT }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - id: install | |
| name: Install doctl | |
| uses: digitalocean/action-doctl@v2 | |
| with: | |
| token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN_2026_08 }} | |
| - id: create | |
| name: Create droplet | |
| run: doctl compute size list | |
| - id: save | |
| name: Save IPv4 | |
| run: echo "::set-output name=IPV4::$(doctl compute droplet get "geosearch-${GITHUB_RUN_ID}" --template "{{- .PublicIPv4 -}}")" | |
| healthcheck: | |
| name: Wait for healthcheck to pass | |
| runs-on: ubuntu-24.04 | |
| needs: create-droplet | |
| env: | |
| IPV4: ${{needs.create-droplet.outputs.IPV4}} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - id: healthcheck | |
| run: ./wait_for_200.sh "$IPV4" |