homeserver/docker-compose/woodpecker/docker-compose.yml.j2

81 lines
2.9 KiB
Text
Raw Normal View History

# https://woodpecker-ci.org/docs/administration/setup
version: '3'
services:
woodpecker-server:
restart: always
container_name: woodpecker-server
chore(deps): update woodpeckerci/woodpecker-server docker tag to v2.3.0 (#707) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [woodpeckerci/woodpecker-server](https://github.com/woodpecker-ci/woodpecker) | minor | `v2.2.2` -> `v2.3.0` | --- ### Release Notes <details> <summary>woodpecker-ci/woodpecker (woodpeckerci/woodpecker-server)</summary> ### [`v2.3.0`](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.3.0): 2.3.0 [Compare Source](https://github.com/woodpecker-ci/woodpecker/compare/v2.2.2...v2.3.0) #### [2.3.0](https://github.com/woodpecker-ci/woodpecker/releases/tag/2.3.0) - 2024-01-31 ##### ❤️ Thanks to all contributors! ❤️ [@&#8203;anbraten](https://github.com/anbraten), [@&#8203;HerHde](https://github.com/HerHde), [@&#8203;qwerty287](https://github.com/qwerty287), [@&#8203;pat-s](https://github.com/pat-s), [@&#8203;renovate](https://github.com/renovate)\[bot], [@&#8203;lukashass](https://github.com/lukashass), [@&#8203;zc-devs](https://github.com/zc-devs), [@&#8203;Alonsohhl](https://github.com/Alonsohhl), [@&#8203;healdropper](https://github.com/healdropper), [@&#8203;eliasscosta](https://github.com/eliasscosta), [@&#8203;runephilosof-karnovgroup](https://github.com/runephilosof-karnovgroup) ##### ✨ Features - Add release event \[[#&#8203;3226](https://github.com/woodpecker-ci/woodpecker/pull/3226)] ##### 📚 Documentation - Add release types \[[#&#8203;3303](https://github.com/woodpecker-ci/woodpecker/pull/3303)] - Add opencollective footer \[[#&#8203;3281](https://github.com/woodpecker-ci/woodpecker/pull/3281)] - Use array syntax in docs \[[#&#8203;3242](https://github.com/woodpecker-ci/woodpecker/pull/3242)] ##### 🐛 Bug Fixes - Fix Gitpod: Gitea auth token creation \[[#&#8203;3299](https://github.com/woodpecker-ci/woodpecker/pull/3299)] - Fix agent updating \[[#&#8203;3287](https://github.com/woodpecker-ci/woodpecker/pull/3287)] - Sanitize pod's step label \[[#&#8203;3275](https://github.com/woodpecker-ci/woodpecker/pull/3275)] - Pipeline errors must be an array \[[#&#8203;3276](https://github.com/woodpecker-ci/woodpecker/pull/3276)] - fix bitbucket SSO using UUID from bitbucket api response as ForgeRemoteID \[[#&#8203;3265](https://github.com/woodpecker-ci/woodpecker/pull/3265)] - fix: bug pod service without label service \[[#&#8203;3256](https://github.com/woodpecker-ci/woodpecker/pull/3256)] - Fix disabling PRs \[[#&#8203;3258](https://github.com/woodpecker-ci/woodpecker/pull/3258)] - fix: bug annotations \[[#&#8203;3255](https://github.com/woodpecker-ci/woodpecker/pull/3255)] ##### 📈 Enhancement - Update theme on system color mode change \[[#&#8203;3296](https://github.com/woodpecker-ci/woodpecker/pull/3296)] - Improve secrets availability checks \[[#&#8203;3271](https://github.com/woodpecker-ci/woodpecker/pull/3271)] - Load more pipeline log lines (500 => 5000) \[[#&#8203;3212](https://github.com/woodpecker-ci/woodpecker/pull/3212)] - Clean up models \[[#&#8203;3228](https://github.com/woodpecker-ci/woodpecker/pull/3228)] ##### Misc - chore(deps): update docker.io/techknowlogick/xgo docker tag to go-1.21.6 \[[#&#8203;3294](https://github.com/woodpecker-ci/woodpecker/pull/3294)] - fix(deps): update docs npm deps non-major \[[#&#8203;3295](https://github.com/woodpecker-ci/woodpecker/pull/3295)] - Remove deprecated `group` from config \[[#&#8203;3289](https://github.com/woodpecker-ci/woodpecker/pull/3289)] - Add spellcheck config \[[#&#8203;3018](https://github.com/woodpecker-ci/woodpecker/pull/3018)] - fix(deps): update golang (packages) \[[#&#8203;3284](https://github.com/woodpecker-ci/woodpecker/pull/3284)] - chore(deps): lock file maintenance \[[#&#8203;3274](https://github.com/woodpecker-ci/woodpecker/pull/3274)] - chore(deps): update web npm deps non-major \[[#&#8203;3273](https://github.com/woodpecker-ci/woodpecker/pull/3273)] - Pin prettier version \[[#&#8203;3260](https://github.com/woodpecker-ci/woodpecker/pull/3260)] - Fix prettier \[[#&#8203;3259](https://github.com/woodpecker-ci/woodpecker/pull/3259)] - Update UI building in Makefile \[[#&#8203;3250](https://github.com/woodpecker-ci/woodpecker/pull/3250)] </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNjUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE2NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Reviewed-on: https://git.mgrote.net/mg/homeserver/pulls/707 Co-authored-by: Renovate Bot <renovate@mgrote.net> Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-02-01 16:12:57 +01:00
image: "woodpeckerci/woodpecker-server:v2.3.0@sha256:50b4d16adae91a9be2d73efb093c8a5df43bde228e416efcd71620822478d4a1"
ports:
- 8000:8000
volumes:
- server-data:/var/lib/woodpecker/
environment:
WOODPECKER_OPEN: false
WOODPECKER_HOST: https://ci.mgrote.net
WOODPECKER_WEBHOOK_HOST: http://docker10.mgrote.net:8000
WOODPECKER_GITEA: true
WOODPECKER_GITEA_URL: https://git.mgrote.net
WOODPECKER_GITEA_CLIENT: "{{ lookup('keepass', 'woodpecker-oauth2-client-id', 'password') }}"
WOODPECKER_GITEA_SECRET: "{{ lookup('keepass', 'woodpecker-oauth2-client-secret', 'password') }}"
WOODPECKER_AGENT_SECRET: "{{ lookup('keepass', 'woodpecker-agent-secret', 'password') }}"
WOODPECKER_ADMIN: mg
WOODPECKER_LOG_LEVEL: info
WOODPECKER_DEBUG_PRETTY: true
networks:
- intern
- traefik
labels:
traefik.http.routers.woodpecker.rule: Host(`ci.mgrote.net`)
traefik.enable: true
traefik.http.routers.woodpecker.tls: true
traefik.http.routers.woodpecker.tls.certresolver: resolver_letsencrypt
traefik.http.routers.woodpecker.entrypoints: entry_https
traefik.http.services.woodpecker.loadbalancer.server.port: 8000
traefik.http.routers.woodpecker.middlewares: woodpecker-ipallowlist
traefik.http.middlewares.woodpecker-ipallowlist.ipallowlist.sourcerange: "192.168.2.0/24,10.25.25.0/24"
traefik.http.middlewares.woodpecker-ipallowlist.ipallowlist.ipstrategy.depth: 0 # https://doc.traefik.io/traefik/middlewares/http/ipallowlist/#ipstrategydepth
woodpecker-agent:
container_name: woodpecker-agent
chore(deps): update woodpeckerci/woodpecker-agent docker tag to v2.3.0 (#706) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [woodpeckerci/woodpecker-agent](https://github.com/woodpecker-ci/woodpecker) | minor | `v2.2.2` -> `v2.3.0` | --- ### Release Notes <details> <summary>woodpecker-ci/woodpecker (woodpeckerci/woodpecker-agent)</summary> ### [`v2.3.0`](https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.3.0): 2.3.0 [Compare Source](https://github.com/woodpecker-ci/woodpecker/compare/v2.2.2...v2.3.0) #### [2.3.0](https://github.com/woodpecker-ci/woodpecker/releases/tag/2.3.0) - 2024-01-31 ##### ❤️ Thanks to all contributors! ❤️ [@&#8203;anbraten](https://github.com/anbraten), [@&#8203;HerHde](https://github.com/HerHde), [@&#8203;qwerty287](https://github.com/qwerty287), [@&#8203;pat-s](https://github.com/pat-s), [@&#8203;renovate](https://github.com/renovate)\[bot], [@&#8203;lukashass](https://github.com/lukashass), [@&#8203;zc-devs](https://github.com/zc-devs), [@&#8203;Alonsohhl](https://github.com/Alonsohhl), [@&#8203;healdropper](https://github.com/healdropper), [@&#8203;eliasscosta](https://github.com/eliasscosta), [@&#8203;runephilosof-karnovgroup](https://github.com/runephilosof-karnovgroup) ##### ✨ Features - Add release event \[[#&#8203;3226](https://github.com/woodpecker-ci/woodpecker/pull/3226)] ##### 📚 Documentation - Add release types \[[#&#8203;3303](https://github.com/woodpecker-ci/woodpecker/pull/3303)] - Add opencollective footer \[[#&#8203;3281](https://github.com/woodpecker-ci/woodpecker/pull/3281)] - Use array syntax in docs \[[#&#8203;3242](https://github.com/woodpecker-ci/woodpecker/pull/3242)] ##### 🐛 Bug Fixes - Fix Gitpod: Gitea auth token creation \[[#&#8203;3299](https://github.com/woodpecker-ci/woodpecker/pull/3299)] - Fix agent updating \[[#&#8203;3287](https://github.com/woodpecker-ci/woodpecker/pull/3287)] - Sanitize pod's step label \[[#&#8203;3275](https://github.com/woodpecker-ci/woodpecker/pull/3275)] - Pipeline errors must be an array \[[#&#8203;3276](https://github.com/woodpecker-ci/woodpecker/pull/3276)] - fix bitbucket SSO using UUID from bitbucket api response as ForgeRemoteID \[[#&#8203;3265](https://github.com/woodpecker-ci/woodpecker/pull/3265)] - fix: bug pod service without label service \[[#&#8203;3256](https://github.com/woodpecker-ci/woodpecker/pull/3256)] - Fix disabling PRs \[[#&#8203;3258](https://github.com/woodpecker-ci/woodpecker/pull/3258)] - fix: bug annotations \[[#&#8203;3255](https://github.com/woodpecker-ci/woodpecker/pull/3255)] ##### 📈 Enhancement - Update theme on system color mode change \[[#&#8203;3296](https://github.com/woodpecker-ci/woodpecker/pull/3296)] - Improve secrets availability checks \[[#&#8203;3271](https://github.com/woodpecker-ci/woodpecker/pull/3271)] - Load more pipeline log lines (500 => 5000) \[[#&#8203;3212](https://github.com/woodpecker-ci/woodpecker/pull/3212)] - Clean up models \[[#&#8203;3228](https://github.com/woodpecker-ci/woodpecker/pull/3228)] ##### Misc - chore(deps): update docker.io/techknowlogick/xgo docker tag to go-1.21.6 \[[#&#8203;3294](https://github.com/woodpecker-ci/woodpecker/pull/3294)] - fix(deps): update docs npm deps non-major \[[#&#8203;3295](https://github.com/woodpecker-ci/woodpecker/pull/3295)] - Remove deprecated `group` from config \[[#&#8203;3289](https://github.com/woodpecker-ci/woodpecker/pull/3289)] - Add spellcheck config \[[#&#8203;3018](https://github.com/woodpecker-ci/woodpecker/pull/3018)] - fix(deps): update golang (packages) \[[#&#8203;3284](https://github.com/woodpecker-ci/woodpecker/pull/3284)] - chore(deps): lock file maintenance \[[#&#8203;3274](https://github.com/woodpecker-ci/woodpecker/pull/3274)] - chore(deps): update web npm deps non-major \[[#&#8203;3273](https://github.com/woodpecker-ci/woodpecker/pull/3273)] - Pin prettier version \[[#&#8203;3260](https://github.com/woodpecker-ci/woodpecker/pull/3260)] - Fix prettier \[[#&#8203;3259](https://github.com/woodpecker-ci/woodpecker/pull/3259)] - Update UI building in Makefile \[[#&#8203;3250](https://github.com/woodpecker-ci/woodpecker/pull/3250)] </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNjUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE2NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Reviewed-on: https://git.mgrote.net/mg/homeserver/pulls/706 Co-authored-by: Renovate Bot <renovate@mgrote.net> Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-02-01 16:13:04 +01:00
image: "woodpeckerci/woodpecker-agent:v2.3.0@sha256:d64898cf9cfa5ae735e904dc421baf6fa1f36df24800793d8f4a455ba964e65f"
command: agent
restart: always
depends_on:
- woodpecker-server
ports:
- 3032:3000
volumes:
- agent-config:/etc/woodpecker
- /var/run/docker.sock:/var/run/docker.sock
environment:
WOODPECKER_SERVER: woodpecker-server:9000
WOODPECKER_AGENT_SECRET: "{{ lookup('keepass', 'woodpecker-agent-secret', 'password') }}"
WOODPECKER_MAX_WORKFLOWS: 20
WOODPECKER_DEBUG_PRETTY: true
WOODPECKER_LOG_LEVEL: info
WOODPECKER_HEALTHCHECK: true
WOODPECKER_BACKEND: docker
networks:
- intern
volumes:
server-data:
agent-config:
# git.mgrote.net -> Settings -> Applications -> woodpecker
# WOODPECKER_GITEA_CLIENT: "{{ lookup('keepass', 'woodpecker-oauth2-client-id', 'password') }}"
# WOODPECKER_GITEA_SECRET: "{{ lookup('keepass', 'woodpecker-oauth2-client-secret', 'password') }}"
# Redirect URL: https://ci.mgrote.net/authorize
######## Networks ########
networks:
traefik:
external: true
intern:
driver: bridge