Add CPS post #108
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 preview on fly.io | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
staging_app: | |
runs-on: ubuntu-latest | |
# Only run one deployment at a time per PR. | |
concurrency: | |
group: bernsteinbear-com-pr-${{ github.event.number }} | |
# Create a GitHub deployment environment per staging app so it shows up | |
# in the pull request UI. | |
environment: | |
name: bernsteinbear-com-pr-${{ github.event.number }} | |
url: ${{ steps.deploy.outputs.url }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy | |
id: deploy | |
uses: superfly/[email protected] | |
with: | |
name: bernsteinbear-com-pr-${{ github.event.number }} | |
region: ewr | |
org: personal | |
env: | |
DOCKER_BUILDKIT: 1 | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |