Skip to content

Commit

Permalink
Merge pull request #32 from go-bazzinga/rupansh/fly-deploy-fix
Browse files Browse the repository at this point in the history
fix: send config to fly deploy
  • Loading branch information
rupansh-sekar-yral authored and rupansh committed Jan 24, 2024
2 parents aeabf1e + cdd1431 commit 0a638fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy-to-production-on-merge-to-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ jobs:
LEPTOS_BIN_TARGET_TRIPLE: x86_64-unknown-linux-gnu
run: cargo leptos build --release
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: secrets setup
run: |
fly secrets set AUTH_SIGN_KEY=$AUTH_SIGN_KEY --app "hot-or-not-auth" --stage
fly secrets set CLOUDFLARE_ACCOUNT_IDENTIFIER=$CLOUDFLARE_ACCOUNT_IDENTIFIER --app "hot-or-not-auth" --stage
fly secrets set CLOUDFLARE_NAMESPACE_IDENTIFIER=$CLOUDFLARE_NAMESPACE_IDENTIFIER --app "hot-or-not-auth" --stage
fly secrets set CLOUDFLARE_API_TOKEN=$CLOUDFLARE_API_TOKEN --app "hot-or-not-auth" --stage
env:
AUTH_SIGN_KEY: ${{ secrets.AUTH_SESSION_COOKIE_SIGNING_SECRET_KEY }}
CLOUDFLARE_NAMESPACE_IDENTIFIER: ${{ secrets.CLOUDFLARE_WORKERS_KV_NAMESPACE_ID }}
CLOUDFLARE_ACCOUNT_IDENTIFIER: ${{ secrets.CLOUDFLARE_WORKERS_KV_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_API_SECRET }}
- name: Deploy a docker container to Fly.io
env:
FLY_API_TOKEN: ${{ secrets.HOT_OR_NOT_AUTH_FLY_IO_GITHUB_ACTION }}
Expand Down
3 changes: 3 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ primary_region = "sin"
cpu_kind = "shared"
cpus = 1
memory_mb = 256

[env]
AUTH_IC_URL="https://ic0.app"

0 comments on commit 0a638fb

Please sign in to comment.