Files
game-server-watcher/.github/workflows/create.yml
a-sync 811a74d202 fix create cloud app
* add missing `--yes` parameter to `fly create volume`
2023-05-29 10:58:56 +02:00

20 lines
571 B
YAML

name: 🏗 Create cloud app
on:
workflow_dispatch:
jobs:
create:
name: 🛫 Create the app and volume entries
runs-on: ubuntu-latest
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
steps:
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: 🧱 Create fly.io app
run: flyctl apps create ${{ github.repository_owner }}-gsw --org personal
- name: 💽 Create fly.io volume
run: flyctl volumes create gsw_data --size 1 --region ${{ secrets.FLY_REGION }} --app ${{ github.repository_owner }}-gsw --yes