Skip to content

Commit

Permalink
feat: create upload dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbira committed Sep 3, 2024
1 parent 5602e0a commit f90d28e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ jobs:
- name: Deploy to ImPaaS
run: |
tsuru app deploy -i ghcr.io/imperial/cpp-connect:latest -a cpp-connect
- name: Create upload directories
run: |
tsuru app run "mkdir -p \$UPLOAD_DIR && cd \$UPLOAD_DIR && mkdir -p banners cvs avatars logos attachments" -a cpp-connect
- name: Set database URL
run: |
tsuru app run "DATABASE_URL=postgres://\$PGUSER:\$PGPASSWORD@\$PGHOST:\$PGPORT/\$PGDATABASE && echo \$DATABASE_URL" -a cpp-connect | grep "^postgres://" | xargs -I {} tsuru env set -a cpp-connect DATABASE_URL={}
Expand Down

0 comments on commit f90d28e

Please sign in to comment.