From cf1715dfd5a04eaa48407f10d7d80fecd75f8462 Mon Sep 17 00:00:00 2001 From: tyler-ball Date: Mon, 20 Jul 2020 13:03:42 -0700 Subject: [PATCH] Use built-in action for CDN purge This new action was added since we last promoted and we are required to use the built-in rather than a bash script now. Signed-off-by: tyler-ball --- .expeditor/config.yml | 2 +- .expeditor/purge-cdn.sh | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100755 .expeditor/purge-cdn.sh diff --git a/.expeditor/config.yml b/.expeditor/config.yml index f0e399f0e..29da98681 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -64,7 +64,7 @@ subscriptions: - built_in:rollover_changelog - bash:.expeditor/update_dockerfile.sh - bash:.expeditor/publish-release-notes.sh - - bash:.expeditor/purge-cdn.sh + - purge_packages_chef_io_fastly:{{channel}}/{{product_key}}/latest - bash:.expeditor/announce-release.sh # - built_in:tag_docker_image # publish to third party package managers that have a dependency diff --git a/.expeditor/purge-cdn.sh b/.expeditor/purge-cdn.sh deleted file mode 100755 index abf28c7e5..000000000 --- a/.expeditor/purge-cdn.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -set -eou pipefail - -echo "Purging '${EXPEDITOR_CHANNEL}/${EXPEDITOR_PRODUCT_KEY}/latest' Surrogate Key group from Fastly" -curl -X POST -H "Fastly-Key: $FASTLY_API_TOKEN" "https://api.fastly.com/service/1ga2Kt6KclvVvCeUYJ3MRp/purge/${EXPEDITOR_CHANNEL}/${EXPEDITOR_PRODUCT_KEY}/latest"