From 664e622fbb5d528e14d42da7baf9505b79f3d041 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 6 Feb 2022 17:08:22 +0200 Subject: Initial commit --- deploy-ui-gcs/trigger.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 deploy-ui-gcs/trigger.js (limited to 'deploy-ui-gcs/trigger.js') diff --git a/deploy-ui-gcs/trigger.js b/deploy-ui-gcs/trigger.js new file mode 100644 index 0000000..bc019e4 --- /dev/null +++ b/deploy-ui-gcs/trigger.js @@ -0,0 +1,12 @@ +const process = require("process") +const { deployPubSub } = require("./index") + +if (process.argv.length !== 3) { + console.log("called with:", process.argv) + throw new Error("Usage: node trigger.js REVISION") +} +const arg = process.argv[2] + +const json = JSON.stringify({ revision: arg }) +const b64 = Buffer.from(json, "utf8").toString("base64") +deployPubSub({ data: b64 }) -- cgit v1.3