This commit is contained in:
parent
573916cc3d
commit
dd58f4ba19
1 changed files with 23 additions and 1 deletions
|
|
@ -12,10 +12,32 @@ jobs:
|
|||
steps:
|
||||
- name: Deploy on server
|
||||
run: |
|
||||
set -e
|
||||
set -euxo pipefail
|
||||
|
||||
test -d /opt/noctura/newsbot || {
|
||||
echo "Deploy-Verzeichnis fehlt: /opt/noctura/newsbot"
|
||||
exit 1
|
||||
}
|
||||
|
||||
cd /opt/noctura/newsbot
|
||||
|
||||
test -d .git || {
|
||||
echo "Kein Git-Repository in /opt/noctura/newsbot"
|
||||
exit 1
|
||||
}
|
||||
|
||||
command -v git >/dev/null || {
|
||||
echo "git ist auf dem Runner nicht installiert"
|
||||
exit 1
|
||||
}
|
||||
|
||||
command -v docker >/dev/null || {
|
||||
echo "docker ist auf dem Runner nicht installiert"
|
||||
exit 1
|
||||
}
|
||||
|
||||
docker compose version
|
||||
|
||||
git fetch origin
|
||||
git reset --hard origin/main
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue