-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One more attempt to migrate Postgres tables
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,12 @@ jobs: | |
- name: Prisma generate | ||
run: yarn prisma generate | ||
|
||
- name: Prisma migrate | ||
env: | ||
DATABASE_URL: ${{ secrets.DATABASE_URL }} | ||
run: npx prisma migrate deploy | ||
|
||
|
||
- name: Build | ||
run: yarn build | ||
|
||
|
@@ -86,7 +92,7 @@ jobs: | |
source: "Dockerfile,docker-compose.yml" | ||
target: "/var/docker/evokegen/" | ||
|
||
- name: executing remote ssh commands using ssh key | ||
- name: Executing remote ssh commands using ssh key | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.PROD_SSH_HOST }} | ||
|
@@ -95,9 +101,4 @@ jobs: | |
script: | | ||
cd /var/docker/evokegen/ | ||
sudo docker build -t evokegen . | ||
sudo docker-compose up -d | ||
- name: Prisma migrate | ||
run: yarn prisma migrate deploy | ||
env: | ||
DATABASE_URL: ${{ secrets.DATABASE_URL }} | ||
sudo docker-compose up -d |