fix:
continuous-integration/drone Build is failing Details

* DRONE_REPO_BRANCH to DRONE_BRANCH
* module.json destination
pull/2/head
dmitry.kirdyashkin 2023-07-11 22:22:43 +03:00
parent a787ba1ecf
commit 1759be3867
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ steps:
PASSWORD: PASSWORD:
from_secret: drone_repo_password from_secret: drone_repo_password
commands: commands:
- envsubst < module.json.template > module.json - envsubst < module.json.template > ./src/module.json
- cat module.json - cat module.json
- zip -r -9 module.zip ./src/* - zip -r -9 module.zip ./src/*
- ls -la - ls -la

View File

@ -8,7 +8,7 @@
"name": "leego neit" "name": "leego neit"
} }
], ],
"version": "${DRONE_BUILD_NUMBER}-${DRONE_REPO_BRANCH}", "version": "${DRONE_BUILD_NUMBER}-${DRONE_BRANCH}",
"minimumCoreVersion": "9", "minimumCoreVersion": "9",
"compatibility": { "compatibility": {
"minimum": "9", "minimum": "9",
@ -16,8 +16,8 @@
"maximum": "10" "maximum": "10"
}, },
"url": "${DRONE_REPO_LINK}", "url": "${DRONE_REPO_LINK}",
"manifest": "${DRONE_REPO_LINK}/releases/download/${DRONE_BUILD_NUMBER}-${DRONE_REPO_BRANCH}/module.json", "manifest": "${DRONE_REPO_LINK}/releases/download/${DRONE_BUILD_NUMBER}-${DRONE_BRANCH}/module.json",
"download": "${DRONE_REPO_LINK}/releases/download/${DRONE_BUILD_NUMBER}-${DRONE_REPO_BRANCH}/module.zip", "download": "${DRONE_REPO_LINK}/releases/download/${DRONE_BUILD_NUMBER}-${DRONE_BRANCH}/module.zip",
"packs": [ "packs": [
{ {
"name": "sc-items", "name": "sc-items",