Skip to content

Merge pull request #272 from TruncateGame/main #23

Merge pull request #272 from TruncateGame/main

Merge pull request #272 from TruncateGame/main #23

Workflow file for this run

name: Deploy to production
on:
push:
branches: ["production"]
concurrency:
group: production_deploy
cancel-in-progress: false
env:
CARGO_TERM_COLOR: always
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy Backend to Citadel
run: |
flyctl deploy \
-c fly.citadel.toml \
-a truncate-citadel \
--build-arg TR_COMMIT="$(git rev-parse HEAD)" \
--build-arg TR_MSG="$(git log -1 --pretty=%B | head -n 1 | sed "s/\"/'/g")" \
--build-arg TR_ENV="production" \
--remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy Frontend to production
run: |
flyctl deploy \
-c fly.client.toml \
-a truncate-client \
--build-arg TR_COMMIT="$(git rev-parse HEAD)" \
--build-arg TR_MSG="$(git log -1 --pretty=%B | head -n 1 | sed "s/\"/'/g")" \
--build-arg TR_ENV="production" \
--remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}