Fix artifact rule, update deploy day #194
This file contains 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 outpost/coup | |
on: | |
push: | |
branches: ["main", "feat/delta-one"] | |
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: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy Backend to Coup | |
run: | | |
flyctl deploy \ | |
-c fly.citadel.toml \ | |
-a truncate-coup \ | |
--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 }} | |
- name: Deploy Frontend to Outpost | |
run: | | |
flyctl deploy \ | |
-c fly.client.toml \ | |
-a truncate-outpost \ | |
--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 }} |