I encounter an error in my Github Actions where I try to automatically deploy my Laravel App to fly.io.
Unfortunately I encounter the following error:
Running easymedbox-api-laravel release_command: php /var/www/html/artisan migrate --force
> Created release_command machine 48e5711b333d08
> Waiting for 48e5711b333d08 to have state: started
> Machine 48e5711b333d08 has state: started
> Waiting for 48e5711b333d08 to have state: destroyed
> Machine 48e5711b333d08 has state: destroyed
> Waiting for 48e5711b333d08 to get exit event
✔ release_command 48e5711b333d08 completed successfully
WARN failed to acquire lease: failed to get lease on VM 9080556a2d00e8: unauthorized
Error: error acquiring leases on all machines
Error: Process completed with exit code 1.
But I used the template action from the docs
name: Deploy to Fly.io - Test API
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup FlyActions
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to Fly.io
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
What am I missing here? Didn’t find something helpful on the forums.
I already tried to refresh the API_KEY