From 58e9d7e8bc41e9a7047eb511ac6af0d41fca5398 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 18 Dec 2022 09:23:56 -0500 Subject: [PATCH] *Initial version --- Dockerfile | 6 ++++++ app.sh | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 Dockerfile create mode 100644 app.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e91c208 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM dpig/cloudflare-cli + +ADD app.sh . + +ENTRYPOINT ["/bin/sh"] +CMD ["/usr/src/app/app.sh"] diff --git a/app.sh b/app.sh new file mode 100644 index 0000000..d19ef4d --- /dev/null +++ b/app.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +export CF_API_KEY=$PLUGIN_CLOUDFLARE_ACCESS_TOKEN + +cfcli -d "$PLUGIN_DOMAIN" purge $PLUGIN_PATH