Compare commits
No commits in common. "48b79ce6ea8fdd0ef73380abe9831dd38bd4d6d1" and "cb481e6af61382cdff218dc7e1c39bfdb746c3dc" have entirely different histories.
48b79ce6ea
...
cb481e6af6
@ -1,23 +0,0 @@
|
|||||||
name: Publish JOBot on dev
|
|
||||||
on: [push]
|
|
||||||
branch: dev
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build and deploy:
|
|
||||||
runs-on: host
|
|
||||||
name: Build and deploy
|
|
||||||
volumes:
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Update repo
|
|
||||||
run: |
|
|
||||||
pwd
|
|
||||||
cd /home/dockeruser/jobot-stack
|
|
||||||
git checkout dev
|
|
||||||
git pull
|
|
||||||
docker compose -f compose.dev.yml up -d postgres
|
|
||||||
|
|
||||||
cd /home/dockeruser/jobot-stack/JOBot.Backend
|
|
||||||
dotnet ef database update -- --environment Development
|
|
||||||
docker compose up --build -d
|
|
||||||
|
|
12
JOBot.Backend/appsettings.Staging.json
Normal file
12
JOBot.Backend/appsettings.Staging.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"PostgreSQL": "Host=postgres;Port=5432;Database=jobot_test;Username=postgres;Password=LocalDbPass"
|
||||||
|
}
|
||||||
|
}
|
@ -9,7 +9,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- ./.docker/postgres_data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- jobot
|
- jobot
|
||||||
|
|
||||||
@ -35,7 +35,4 @@ services:
|
|||||||
- jobot
|
- jobot
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
jobot:
|
jobot:
|
||||||
|
|
||||||
volumes:
|
|
||||||
postgres_data:
|
|
10
compose.yml
10
compose.yml
@ -5,9 +5,9 @@ services:
|
|||||||
image: postgres:15
|
image: postgres:15
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: LocalDbPass
|
POSTGRES_PASSWORD: LocalDbPass
|
||||||
POSTGRES_DB: jobot
|
POSTGRES_DB: jobot
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- ./.docker/postgres_data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- jobot
|
- jobot
|
||||||
|
|
||||||
@ -32,8 +32,4 @@ services:
|
|||||||
- jobot
|
- jobot
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
jobot:
|
jobot:
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
postgres_data:
|
|
Loading…
x
Reference in New Issue
Block a user