Skip to content

Merge pull request #319 from TruncateGame/truncate-unified #211

Merge pull request #319 from TruncateGame/truncate-unified

Merge pull request #319 from TruncateGame/truncate-unified #211

Workflow file for this run

name: Deploy to staging
on:
push:
branches: ["main"]
concurrency:
group: staging_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: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to staging
run: |
flyctl deploy \
-a truncate-exclave \
--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="outpost" \
--remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}