Skip to content

deploy to fly like seemingly everyone else is doing rn #18

deploy to fly like seemingly everyone else is doing rn

deploy to fly like seemingly everyone else is doing rn #18

name: Build and Push Container
on:
push:
paths:
- 'atb-web/**'
- '.github/workflows/build-push-container.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build and push Docker image
uses: macbre/push-to-ghcr@master
with:
dockerfile: atb-web.Containerfile
context: .
github_token: ${{ secrets.GITHUB_TOKEN }}
image_name: ${{ github.repository }}/atb-web
deploy:
name: Deploy web app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}