From b0968e268bc9b763ad09eae6c39e6343b78521ed Mon Sep 17 00:00:00 2001
From: Griefed <griefed@griefed.de>
Date: Fri, 21 Jan 2022 20:04:23 +0100
Subject: [PATCH] feat: Add discord.sh for webhook messages

---
 Dockerfile | 26 +++++++++++++++++++-------
 README.md  |  1 +
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 19a3ed0..b068f32 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,12 +4,20 @@ RUN \
   apk add \
     curl && \
   LATEST_DOCKERX=$(curl --silent "https://api.github.com/repos/docker/buildx/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c 2-) && \
-  curl \
-    -L \
-    --output /docker-buildx \
-      "https://github.com/docker/buildx/releases/download/v${LATEST_DOCKERX}/buildx-v${LATEST_DOCKERX}.linux-amd64" && \
-  chmod a+x \
-    /docker-buildx
+  echo "**** Acquire docker-buildx" && \
+    curl \
+      -L \
+      --output /docker-buildx \
+        "https://github.com/docker/buildx/releases/download/v${LATEST_DOCKERX}/buildx-v${LATEST_DOCKERX}.linux-amd64" && \
+    chmod a+x \
+      /docker-buildx && \
+  echo "**** Acquire discord.sh from ChaoticWeg/discord.sh" && \
+    curl \
+      -L \
+      --output /discord.sh \
+        https://raw.githubusercontent.com/ChaoticWeg/discord.sh/master/discord.sh && \
+    chmod a+x \
+      /discord.sh
 
 FROM docker:19.03-dind
 
@@ -17,6 +25,7 @@ LABEL maintainer="Griefed <griefed@griefed.de>"
 LABEL description="Provides GitLab Semantic Release, buildx, JDK 8, NodeJS for Griefed's GitLab CI/CD pipelines."
 
 COPY --from=fetcher /docker-buildx /usr/lib/docker/cli-plugins/docker-buildx
+COPY --from=fetcher /discord.sh /discord.sh
 
 ENV DOCKER_CLI_EXPERIMENTAL=enabled
 
@@ -29,6 +38,7 @@ RUN \
     ca-certificates \
     curl \
     git \
+    jq \
     nodejs \
     npm \
     openjdk8 && \
@@ -43,9 +53,11 @@ RUN \
     @semantic-release/gitlab \
     @semantic-release/npm \
     @semantic-release/release-notes-generator && \
-  echo "**** Making docker-buildx executable for all ****" && \
+  echo "**** Making docker-buildx and discord.sh executable for all ****" && \
   chmod a+x \
     /usr/lib/docker/cli-plugins/docker-buildx && \
+  chmod a+x \
+    /discord.sh && \
   echo "**** Installing quasar ****" && \
   npm install -g \
     @quasar/cli && \
diff --git a/README.md b/README.md
index 11dc7db..684484e 100644
--- a/README.md
+++ b/README.md
@@ -15,3 +15,4 @@ Combines:
 - [GitLab Semantic Release](https://git.griefed.de/prosper/gitlab-semantic-release)
 - NodeJS for CI
 - Docker-in-Docker
+- [discord.sh](https://github.com/ChaoticWeg/discord.sh)
\ No newline at end of file
-- 
GitLab