Added woodpecker CICD
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
a297abb7ef
commit
4c7e4f9911
19
.woodpecker.yaml
Normal file
19
.woodpecker.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
variables:
|
||||
- &app_name "watchtower"
|
||||
|
||||
when:
|
||||
event: [push]
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
deploy:
|
||||
image: docker:28-cli
|
||||
privileged: true
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /home/george:/home/george
|
||||
environment:
|
||||
APP_NAME: *app_name
|
||||
commands:
|
||||
- cp -r . /home/george/$APP_NAME/
|
||||
- docker compose -p $APP_NAME -f /home/george/$APP_NAME/docker-compose.yaml up -d --pull always --force-recreate
|
||||
|
|
@ -6,14 +6,12 @@ services:
|
|||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
env_file:
|
||||
- ./.env # The HOMEPAGE_VAR_WATCHTOWER_KEY is taken from the homepage .env
|
||||
- ./.env
|
||||
environment:
|
||||
# This tells Watchtower to clean up old images after updating
|
||||
- WATCHTOWER_CLEANUP=true
|
||||
# This sets how often to check for updates (in seconds). 86400 = 24 hours.
|
||||
- WATCHTOWER_POLL_INTERVAL=86400
|
||||
- DOCKER_API_VERSION=1.44
|
||||
- WATCHTOWER_HTTP_API_METRICS=true # Required for the widget
|
||||
- WATCHTOWER_HTTP_API_METRICS=true
|
||||
- WATCHTOWER_HTTP_API_TOKEN=${HOMEPAGE_VAR_WATCHTOWER_KEY}
|
||||
ports:
|
||||
- 8080:8080
|
||||
|
|
|
|||
Loading…
Reference in a new issue