Files
captable/.github/workflows/production.yml
T
dfc56bf466 feat: improve deployment workflow (#318)
* chore: remove docker.fly

* feat: remove deploy workflow

* feat: add staging deploy

* feat: add production deploy

* feat: move docker file

* feat: add experimental and release command

* chore: use emoji and update node version

* fix: enable action

* feat: testing staging and prod deploys

* chore: setup fly before deploy

* feat: testing staging deploy

* feat: deploy latest docker image instead of re-building it

* fix: app name during deploy

* feat: fixing command

* feat: another try to fix the command

* feat: rename file and build image before deploy for staging workflow

* fix: updating release command

* fix: try bash file

* fix: command

* fix: bash to sh

* feat: add docker setup for app as well

* feat: update docker compose

* feat: working with docker compose for developer dx

* chore: final cleanup

---------

Co-authored-by: Puru D <puru@dahal.me>
2024-05-14 04:24:12 -05:00

31 lines
773 B
YAML

name: Fly Production Deploy
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
on:
release:
types: [published]
jobs:
deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🚚 Move Dockerfile to root
run: |
mv ./docker/Dockerfile ./Dockerfile
- name: 🪰 Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: latest
- name: 🚀 Deploy Production
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}