Merge pull request #319 from TruncateGame/truncate-unified #211
This file contains hidden or 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 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 }} |