add logs for bull-board #63
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: Api Deploy | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'apps/api/**' | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
defaults: | |
run: | |
working-directory: apps/api | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
with: | |
version: '9' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'pnpm' | |
cache-dependency-path: 'apps/api/pnpm-lock.yaml' | |
- run: pnpm install | |
- run: pnpm run lint | |
- name: Start container | |
run: docker compose -p budget-tracker -f .docker/docker-compose-dependencies.yml up -d --build --remove-orphans | |
- name: Tests e2e | |
run: pnpm run test:e2e | |
env: | |
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }} | |
- name: Stop container | |
run: docker compose -p budget-tracker -f .docker/docker-compose-dependencies.yml down | |
- run: pnpm run build | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |