add docker compose and update pipeline
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 18s
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 18s
This commit is contained in:
@ -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
7
docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user