feat: added deploy script
This commit is contained in:
parent
cb481e6af6
commit
7e24a7444e
16
.gitea/deploy-dev.yml
Normal file
16
.gitea/deploy-dev.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name: Publish JOBot on dev
|
||||||
|
on: [push]
|
||||||
|
branch: dev
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build and deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Build and deploy
|
||||||
|
steps:
|
||||||
|
- name: Update repo
|
||||||
|
run: |
|
||||||
|
cd /home/dockeruser/jobot-stack/JOBot.Backend
|
||||||
|
git checkout dev
|
||||||
|
git pull
|
||||||
|
dotnet ef database update
|
||||||
|
sudo docker compose up --build -d
|
Loading…
x
Reference in New Issue
Block a user