feat(deploy): vollständige Containerlösung
This commit is contained in:
5
deploy/dockerfile
Normal file
5
deploy/dockerfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
FROM alpine:3.19
|
||||||
|
|
||||||
|
RUN apk add --no-cache git docker-cli bash
|
||||||
|
|
||||||
|
WORKDIR /workspace
|
||||||
@@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user