I have this github action
name: Fly Deploy Staging
on:
push:
branches:
- staging
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config fly.staging.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
but it crashes:
Error:
Could not find App “xxxxxxxx”
Error: Process completed with exit code 1.
andie
August 16, 2023, 9:31pm
2
Hi @nicolasvegam
This could be a token issue. If you have more than one app (like production and staging) and are using deploy tokens, then you’ll need to create separate tokens for each app (for FLY_API_TOKEN
).
Check out:
fly deploy --remote-only works from my dev machine (Macbook), but has an error in GHA. Local flyctl version: fly v0.0.522 darwin/amd64 Commit: 336114ae BuildDate: 2023-04-15T06:13:21Z
Build log:
==> Verifying app config
Validating <redacted>/fly.toml
--> Verified app config
WARNING: Failed to fetch platform version: Could not find App "<redacted>"
✓ Configuration is valid
Error: Could not find App "<redacted>"
Run 'flyctl --help' for usage.
Error: Process completed with exit code 1.
Workflo…
and
I’m having strange errors trying to deploy a remix app. I can deploy the staging version of the app, but not the production version. I get an error like so:
Run superfly/flyctl-actions@1.3
with:
args: deploy --remote-only --build-arg COMMIT_SHA=485701b21a47fb55ca1d5372a9de363bf349fb74
env:
FLY_API_TOKEN: ***
/usr/bin/docker run --name bedb408083332fa91461699b581539b5e2976_dc0118 --label 5bedb4 --workdir /github/workspace --rm -e "FLY_API_TOKEN" -e "INPUT_ARGS" -e "HOME" -e "GITHUB_J…
1 Like
I am actually doing that
usign flyctl tokens create deploy -x 999999h --config fly.staging.toml
and also I tried generating token from the UI of fly
andie
August 16, 2023, 10:52pm
4
Could you confirm that the app name for which you created the token is the same as the value for app
in fly.staging.toml
?
Yes!
app = "carvuk-api-nest-stg"
primary_region = "scl"
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
system
Closed
August 23, 2023, 11:22pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.