feat(deploy): vollständige Containerlösung

This commit is contained in:
2026-02-22 18:55:39 +01:00
parent 4e02deb995
commit d455423ae1
3 changed files with 36 additions and 26 deletions

5
deploy/dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM alpine:3.19
RUN apk add --no-cache git docker-cli bash
WORKDIR /workspace

View File

@@ -1,31 +1,25 @@
[
{
"id": "bruchtal-deploy",
"execute-command": "/docker/Bruchtal/deploy/deploy-bruchtal.sh",
"command-working-directory": "/docker/Bruchtal",
"trigger-rule": {
"and": [
{
"match": {
"type": "payload-hmac-sha256",
"secret": "!!Zazen17**",
"parameter": {
"source": "header",
"name": "X-Gitea-Signature"
}
}
},
{
"match": {
"type": "value",
"parameter": {
"source": "payload",
"name": "ref"
},
"value": "refs/heads/main"
}
}
]
}
"execute-command": "docker",
"command-working-directory": "/",
"pass-arguments-to-command": [
{
"source": "string",
"name": "exec"
},
{
"source": "string",
"name": "bruchtal-deploy"
},
{
"source": "string",
"name": "bash"
},
{
"source": "string",
"name": "/workspace/deploy/deploy-bruchtal.sh"
}
]
}
]

View File

@@ -12,6 +12,17 @@ services:
- /docker/Bruchtal:/docker/Bruchtal:rw
command: ["-hooks", "/hooks/hooks.json", "-verbose", "-port", "9001", "-ip", "0.0.0.0"]
bruchtal-deploy:
build: ./deploy
container_name: bruchtal-deploy
networks:
- bruchtal-net
volumes:
- /docker/Bruchtal:/workspace
- /var/run/docker.sock:/var/run/docker.sock
entrypoint: ["sleep", "infinity"]
networks:
bruchtal-net:
external: true