whitelist staging website #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Fly on push to master | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
build_check: | |
uses: ./.github/workflows/build-check.yml | |
with: | |
publish-artifact: true | |
deploy: | |
name: Deploy | |
needs: build_check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download build | |
uses: actions/download-artifact@v3 | |
with: | |
name: build-musl | |
- run: chmod +x target/x86_64-unknown-linux-musl/release/yral-auth-ssr | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Set secret tokens | |
run: | | |
flyctl secrets set COOKIE_KEY="$COOKIE_KEY" --app "yral-auth" --stage | |
flyctl secrets set REDIS_URL="$REDIS_URL" --app "yral-auth" --stage | |
flyctl secrets set GOOGLE_CLIENT_SECRET=$GOOGLE_CLIENT_SECRET --app "yral-auth" --stage | |
env: | |
COOKIE_KEY: ${{ secrets.AUTH_SESSION_COOKIE_SIGNING_SECRET_KEY }} | |
REDIS_URL: ${{ secrets.AUTH_FLY_IO_UPSTASH_REDIS_DATABASE_CONNECTION_STRING }} | |
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_SIGNING_OAUTH_CLIENT_CREDENTIAL_CLIENT_SECRET }} | |
FLY_API_TOKEN: ${{ secrets.AUTH_FLY_IO_GITHUB_ACTION_DEPLOY_TOKEN }} | |
- name: Deploy a docker container to Fly.io | |
run: flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.AUTH_FLY_IO_GITHUB_ACTION_DEPLOY_TOKEN }} |