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

View File

@@ -12,6 +12,17 @@ services:
- /docker/Bruchtal:/docker/Bruchtal:rw - /docker/Bruchtal:/docker/Bruchtal:rw
command: ["-hooks", "/hooks/hooks.json", "-verbose", "-port", "9001", "-ip", "0.0.0.0"] 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: networks:
bruchtal-net: bruchtal-net:
external: true external: true