From ef36a1ec1a43931c7f77737d7de12680910e5cf6 Mon Sep 17 00:00:00 2001 From: Adrien le Maire Date: Mon, 10 May 2021 12:34:29 +0000 Subject: [PATCH] Update matrix-webhook/Makefile, .gitlab-ci.yml files --- .gitlab-ci.yml | 13 +++++++++++++ matrix-webhook/Makefile | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 matrix-webhook/Makefile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 105434d..0de74cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,19 @@ element: changes: - element/* +matrix-webhook: + stage: build + tags: + - docker + script: + - cd matrix-webhook + - make push + only: + variables: + - $CI_COMMIT_REF_PROTECTED == "true" + changes: + - matrix-webhook/* + hugo: stage: build tags: diff --git a/matrix-webhook/Makefile b/matrix-webhook/Makefile new file mode 100644 index 0000000..8e3bc83 --- /dev/null +++ b/matrix-webhook/Makefile @@ -0,0 +1,19 @@ +NAMESPACE=alemairebe +VERSION=0.0.1 + +IMAGE=matrix-webhook + +push: get decompress build + +get: + wget https://github.com/turt2live/matrix-appservice-webhooks/archive/refs/heads/master.zip + +decompress: + unzip master.zip + +build: + docker buildx build --platform linux/amd64,linux/arm64 --push \ + --cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \ + --cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \ + --tag ${NAMESPACE}/${IMAGE}:$(VERSION) \ + --tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) matrix-appservice-webhooks-master