curl -sLS https://cli.openfaas.com | sudo sh
For the community cluster:
curl -SLO https://raw.githubusercontent.com/teamserverless/leaderboard-app/master/pub-cert.pem
Given a GitHub or GitLab username or org of teamserverless
and a secret named slack
your secret name will be teamserverless-slack
.
export WEBHOOK_URL="https://slack..."
export WEBHOOK_SECRET="dont-tell"
faas-cli cloud seal \
--name teamserverless-slack
--literal=webhook-url="${WEBHOOK_URL}" \
--literal=webhook-secret="${WEBHOOK_SECRET}"
In stack.yml
in secrets:
put:
secrets:
- teamserverless-slack
Finally, to read your secret literals at runtime use the literal
from the seal
stage:
/var/openfaas/secrets/webhook-url
/var/openfaas/secrets/webhook-secret