Closed Aivean closed 1 year ago
Takes secrets from the environment. Skips step if secrets are not available.
Tested during staging deploy: https://github.com/spaceshelter/orbitar/actions/runs/5095398411/jobs/9160299195
(I temporarily added secrets to Staging env, now they are removed)
Run curl --request POST \ curl --request POST \ --url https://api.cloudflare.com/client/v4/zones/***/purge_cache \ --header 'Content-Type: application/json' \ --header 'Authorization: ***' \ --data '{ "purge_everything": true }' shell: /usr/bin/bash -e {0} env: CLOUDFLARE_ZONE: *** CLOUDFLARE_BEARER_TOKEN: *** % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 { "result": { "id": "***" }, "success": true, "errors": [], "messages": [] }
LGTM. Make sure that secrets are not outputted anywhere in build logs
they don't
Takes secrets from the environment. Skips step if secrets are not available.
Tested during staging deploy: https://github.com/spaceshelter/orbitar/actions/runs/5095398411/jobs/9160299195
(I temporarily added secrets to Staging env, now they are removed)