Merge pull request 'Configured auto-deploy' (#23) from dev into main
All checks were successful
Publish JOBot on dev / Build and deploy (push) Successful in 26s
All checks were successful
Publish JOBot on dev / Build and deploy (push) Successful in 26s
Reviewed-on: #23
This commit is contained in:
commit
48b79ce6ea
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
|
||||||
|
|
||||||
@ -36,3 +36,6 @@ services:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
jobot:
|
jobot:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
@ -7,7 +7,7 @@ services:
|
|||||||
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
|
||||||
|
|
||||||
@ -33,3 +33,7 @@ services:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
jobot:
|
jobot:
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
Loading…
x
Reference in New Issue
Block a user