This commit is contained in:
parent
13a306a061
commit
7f6f9e8e67
@ -9,6 +9,9 @@ variables:
|
|||||||
- DOCKERFILE=docker/Dockerfile
|
- DOCKERFILE=docker/Dockerfile
|
||||||
- CONTEXT=.
|
- CONTEXT=.
|
||||||
- WATCHTOWER_HOST=watchtower.balsillie.net
|
- WATCHTOWER_HOST=watchtower.balsillie.net
|
||||||
|
- MATRIX_HOST=matrix.balsillie.net
|
||||||
|
- MATRIX_PORT=443
|
||||||
|
- MATRIX_ROOM=!HdSXmuHcBMaYExEfkh:balsillie.net
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /git
|
base: /git
|
||||||
@ -45,13 +48,7 @@ pipeline:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
- REGISTRY=code.balsillie.net
|
*vars
|
||||||
- REGISTRY_USER=michael
|
|
||||||
- ORGANIZATION=containers
|
|
||||||
- REPO=matrix-service-synapse
|
|
||||||
- BUILD_ARGS=PYTHON_VERSION=3.10
|
|
||||||
- DOCKERFILE=docker/Dockerfile
|
|
||||||
- CONTEXT=.
|
|
||||||
commands:
|
commands:
|
||||||
- export DOCKER_BUILDKIT=1
|
- export DOCKER_BUILDKIT=1
|
||||||
- cd /git/$${REPO}
|
- cd /git/$${REPO}
|
||||||
@ -68,7 +65,7 @@ pipeline:
|
|||||||
$${CONTEXT}
|
$${CONTEXT}
|
||||||
- docker push -a $REGISTRY/$ORGANIZATION/$REPO
|
- docker push -a $REGISTRY/$ORGANIZATION/$REPO
|
||||||
|
|
||||||
notify-watchtower:
|
trigger-watchtower:
|
||||||
image: curlimages/curl
|
image: curlimages/curl
|
||||||
pull: false
|
pull: false
|
||||||
environment:
|
environment:
|
||||||
@ -77,4 +74,17 @@ pipeline:
|
|||||||
- source: WATCHTOWER_HTTP_API_TOKEN
|
- source: WATCHTOWER_HTTP_API_TOKEN
|
||||||
target: WATCHTOWER_HTTP_API_TOKEN
|
target: WATCHTOWER_HTTP_API_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- /bin/sh /git/pipeline/notify-watchtower.sh
|
- /bin/sh /git/pipeline/trigger-watchtower.sh
|
||||||
|
|
||||||
|
notify-matrix:
|
||||||
|
image: containrrr/shoutrrr
|
||||||
|
pull: false
|
||||||
|
environment:
|
||||||
|
*vars
|
||||||
|
secrets:
|
||||||
|
- source: MATRIX_ACCESS_TOKEN
|
||||||
|
target: MATRIX_ACCESS_TOKEN
|
||||||
|
commands:
|
||||||
|
- shoutrrr send
|
||||||
|
--url matrix://$${MATRIX_ACCESS_TOKEN}@$${MATRIX_HOST}:$${MATRIX_PORT}/?rooms=$${MATRIX_ROOM}
|
||||||
|
--message "New image build $${ORGANIZATION}/$${REPO} has completed and been deployed."
|
Loading…
Reference in New Issue
Block a user