Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
[http_service]
internal_port = 8210
force_https = true
auto_stop_machines = "stop"
min_machines_running = 0

[[vm]]
size = "shared-cpu-1x"
Expand Down Expand Up @@ -83,6 +85,10 @@ jobs:

- name: Destroy Fly app
run: |
flyctl apps destroy "${{ env.FLY_APP }}" --yes 2>/dev/null || true
if flyctl apps list --json | jq -e --arg name "${{ env.FLY_APP }}" '.[] | select(.Name == $name)' > /dev/null; then
flyctl apps destroy "${{ env.FLY_APP }}" --yes
else
echo "App ${{ env.FLY_APP }} does not exist, nothing to destroy"
fi
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
Loading