Added woodpecker CICD
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
GeorgeWebberley 2026-01-26 12:37:21 +01:00
parent a297abb7ef
commit 4c7e4f9911
2 changed files with 21 additions and 4 deletions

19
.woodpecker.yaml Normal file
View 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

View file

@ -6,14 +6,12 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
env_file: env_file:
- ./.env # The HOMEPAGE_VAR_WATCHTOWER_KEY is taken from the homepage .env - ./.env
environment: environment:
# This tells Watchtower to clean up old images after updating
- WATCHTOWER_CLEANUP=true - WATCHTOWER_CLEANUP=true
# This sets how often to check for updates (in seconds). 86400 = 24 hours.
- WATCHTOWER_POLL_INTERVAL=86400 - WATCHTOWER_POLL_INTERVAL=86400
- DOCKER_API_VERSION=1.44 - 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} - WATCHTOWER_HTTP_API_TOKEN=${HOMEPAGE_VAR_WATCHTOWER_KEY}
ports: ports:
- 8080:8080 - 8080:8080