diff --git a/README.md b/README.md index 09925f9..3f26bf4 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,22 @@ looking. You've came to the right place. when: on_failure ``` +1. (Optional) If you want a notification before the pipeline started, add these lines, in their appropiate locations on the `.gitlab-ci.yml` + + ```yaml + stages: + - build + - deploy # adjust with your deployment stage + - notification # this is the after-build notification + + start_build: + stage: build + script: + - wget "https://gitlab.assemblrworld.com/api/v4/projects/92/repository/files/send.sh/raw?ref=master&private_token=YCTyexwYkcpV77GQsJgu" -O send.sh + - chmod +x send.sh + - ./send.sh building $WEBHOOK_URL + ``` + 1. Grab your coffee ☕ and enjoy! And, if you liked this, please ⭐**Star** this repository to show your love. diff --git a/send.sh b/send.sh index 1e7c38f..61ce67b 100644 --- a/send.sh +++ b/send.sh @@ -1,6 +1,12 @@ #!/bin/bash case $1 in + "building" ) + EMBED_COLOR=1796534 + STATUS_MESSAGE="Building" + ARTIFACT_URL="Not available" + ;; + "success" ) EMBED_COLOR=3066993 STATUS_MESSAGE="Passed"