From 8a2540f2db400d0ea591ad7c38464956c84f9c0d Mon Sep 17 00:00:00 2001 From: "dmitry.kirdyashkin" Date: Tue, 11 Jul 2023 22:17:21 +0300 Subject: [PATCH] test envsubst --- .drone.yml | 2 ++ module.json.template | 41 +++++++++++++++++++++++++++++++++++++++++ vars | 0 3 files changed, 43 insertions(+) create mode 100644 module.json.template create mode 100644 vars diff --git a/.drone.yml b/.drone.yml index 23643f1..c906e5b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,5 +11,7 @@ steps: PASSWORD: from_secret: drone_repo_password commands: + - envsubst < module.json.template + - cat module.json.template - zip -r -9 module.zip ./src/* - ls -la diff --git a/module.json.template b/module.json.template new file mode 100644 index 0000000..32d69b0 --- /dev/null +++ b/module.json.template @@ -0,0 +1,41 @@ +{ + "id": "sc-items", + "name": "shared-compendia-items", + "title": "Shared Compendia Items", + "description": "Item list", + "authors": [ + { + "name": "leego neit" + } + ], + "version": "${DRONE_BUILD_NUMBER}-${DRONE_REPO_BRANCH}", + "minimumCoreVersion": "9", + "compatibility": { + "minimum": "9", + "verified": "10", + "maximum": "10" + }, + "url": "${DRONE_REPO_LINK}", + "manifest": "${DRONE_REPO_LINK}/releases/download/${DRONE_BUILD_NUMBER}-${DRONE_REPO_BRANCH}/module.json", + "download": "${DRONE_REPO_LINK}/releases/download/${DRONE_BUILD_NUMBER}-${DRONE_REPO_BRANCH}/module.zip", + "packs": [ + { + "name": "sc-items", + "label": "sc items", + "path": "packs/sc-items.db", + "entity": "Item", + "type": "Item", + "module": "shared-compendia-items", + "system": "dnd5e" + }, + { + "name": "sc-items-aota", + "label": "arcana of the ancients items", + "path": "packs/sc-items-aota.db", + "entity": "Item", + "type": "Item", + "module": "shared-compendia-items", + "system": "dnd5e" + } + ] +} diff --git a/vars b/vars new file mode 100644 index 0000000..e69de29