Compare commits
15 Commits
cb481e6af6
...
48b79ce6ea
Author | SHA1 | Date | |
---|---|---|---|
48b79ce6ea | |||
81bf05e3fc | |||
445a1f7fa4 | |||
2f79bd336a | |||
cf463a5d94 | |||
f6500670c0 | |||
1f0bc01dc6 | |||
18e6fcc883 | |||
10d0a83e15 | |||
3b8278ba66 | |||
86cad2beec | |||
4b223ecf98 | |||
d041fd870b | |||
6d5c327747 | |||
7e24a7444e |
23
.gitea/workflows/deploy-dev.yml
Normal file
23
.gitea/workflows/deploy-dev.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
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
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"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:
|
||||||
- ./.docker/postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- jobot
|
- jobot
|
||||||
|
|
||||||
@ -35,4 +35,7 @@ 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:
|
||||||
- ./.docker/postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- jobot
|
- jobot
|
||||||
|
|
||||||
@ -32,4 +32,8 @@ services:
|
|||||||
- jobot
|
- jobot
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
jobot:
|
jobot:
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
Loading…
x
Reference in New Issue
Block a user