This commit is contained in:
parent
2c49096248
commit
c5a59db6bf
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/deploy.yml
Normal file
24
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Deploy newsbot
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: linux
|
||||
|
||||
steps:
|
||||
- name: Deploy on server
|
||||
run: |
|
||||
set -e
|
||||
|
||||
cd /opt/noctura/newsbot
|
||||
|
||||
git fetch origin
|
||||
git reset --hard origin/main
|
||||
|
||||
docker compose up -d --build
|
||||
|
||||
docker image prune -f
|
||||
Loading…
Reference in a new issue