feat(deploy): vollständige Containerlösung
This commit is contained in:
3
deploy/Dockerfile
Normal file
3
deploy/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM thecatlady/webhook:2.8.0
|
||||||
|
USER root
|
||||||
|
RUN apk add --no-cache git docker-cli bash
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
FROM alpine:3.19
|
|
||||||
|
|
||||||
RUN apk add --no-cache git docker-cli bash
|
|
||||||
|
|
||||||
WORKDIR /workspace
|
|
||||||
@@ -1,25 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": "bruchtal-deploy",
|
"id": "bruchtal-deploy",
|
||||||
"execute-command": "docker",
|
"execute-command": "/workspace/deploy/deploy-bruchtal.sh",
|
||||||
"command-working-directory": "/",
|
"command-working-directory": "/workspace"
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -1,28 +1,12 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
bruchtal-webhook:
|
bruchtal-webhook:
|
||||||
image: thecatlady/webhook:2.8.0
|
build: ./deploy
|
||||||
container_name: bruchtal-webhook
|
container_name: bruchtal-webhook
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
ports:
|
||||||
- bruchtal-net # 👈 neu für gitea
|
- "9001:9001"
|
||||||
volumes:
|
|
||||||
- /docker/Bruchtal/deploy/hooks.json:/hooks/hooks.json:ro
|
|
||||||
- /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:
|
volumes:
|
||||||
- /docker/Bruchtal:/workspace
|
- /docker/Bruchtal:/workspace
|
||||||
|
- /docker/Bruchtal/deploy/hooks.json:/hooks/hooks.json:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
entrypoint: ["sleep", "infinity"]
|
command: ["-hooks", "/hooks/hooks.json", "-verbose", "-port", "9001", "-ip", "0.0.0.0"]
|
||||||
|
|
||||||
networks:
|
|
||||||
bruchtal-net:
|
|
||||||
external: true
|
|
||||||
Reference in New Issue
Block a user