add docker compose and update pipeline
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 18s

This commit is contained in:
2025-06-06 17:20:43 -05:00
parent 00bc9db5b3
commit b63e1738d1
2 changed files with 8 additions and 1 deletions

View File

@ -22,7 +22,7 @@ jobs:
docker stop garfbot
docker rm garfbot
docker build -t git.crate.zip/crate/garfbot:latest .
docker run -d --restart always -v /home/crate/garfbot:/usr/src/app --name garfbot git.crate.zip/crate/garfbot:latest
docker compose up -d
else
docker restart garfbot
fi

7
docker-compose.yml Normal file
View File

@ -0,0 +1,7 @@
services:
garfbot:
image: git.crate.zip/crate/garfbot:latest
container_name: garfbot
restart: always
volumes:
- /home/crate/garfbot:/usr/src/app