Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 551 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 551 Bytes

https://cloud.google.com/cloud-build/docs/configure-third-party-notifications#slack_notifications

Environment variables

  • SLACK_WEBHOOK

Triggering event

{
  "data": "eyJzdGF0dXMiOiJTVUNDRVNTIn0="
}

What? Why?

▲ mrtnzlml iex
Erlang/OTP 21 [erts-10.0.8] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]

Interactive Elixir (1.7.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Base.encode64("{\"status\":\"SUCCESS\"}") 
"eyJzdGF0dXMiOiJTVUNDRVNTIn0="

(expects PubSub event message)