File tree Expand file tree Collapse file tree 4 files changed +7
-10
lines changed
Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 2323 CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
2424 CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
2525 ZONE_ID : ${{ secrets.ZONE_ID }}
26- AUTH_KEY : ${{ secrets.AUTH_KEY }}
27- AUTH_EMAIL : ${{ secrets.AUTH_EMAIL }}
26+ POLYKEY_DOCS_CLOUDFLARE_CLEANUP_TOKEN : ${{ secrets.POLYKEY_DOCS_CLOUDFLARE_CLEANUP_TOKEN }}
2827 run : |
2928 echo 'Perform service deployment for feature'
3029 nix develop .#ci --command bash -c $'
Original file line number Diff line number Diff line change 1919 shellHook = ''
2020 echo "Entering $(npm pkg get name)"
2121 set -o allexport
22- . ./. env
22+ . <(pk secrets env Polykey-Docs:.)
2323 set +o allexport
2424 set -v
2525 ${ lib . optionalString ci ''
Original file line number Diff line number Diff line change 22
33response=$( curl -X GET " https://api.cloudflare.com/client/v4/zones/$ZONE_ID /ssl/certificate_packs" \
44 -H " Content-Type: application/json" \
5- -H " X-Auth-Key: $AUTH_KEY " \
6- -H " X-Auth-Email: $AUTH_EMAIL " )
5+ -H " Authorization: Bearer $POLYKEY_DOCS_CLOUDFLARE_CLEANUP_TOKEN " )
76
87cert_ids=$( echo " $response " | jq -r --arg domain " $DOMAIN " ' .result[] | select(.hosts[] | contains($domain)) | .id' )
98
109echo " $cert_ids " | while read -r cert_id; do
1110 curl -X DELETE --url " https://api.cloudflare.com/client/v4/zones/$ZONE_ID /ssl/certificate_packs/$cert_id " \
1211 -H " Content-Type: application/json" \
13- -H " X-Auth-Key: $AUTH_KEY " \
14- -H " X-Auth-Email: $AUTH_EMAIL "
12+ -H " Authorization: Bearer $POLYKEY_DOCS_CLOUDFLARE_CLEANUP_TOKEN "
1513done
You can’t perform that action at this time.
0 commit comments