Compare commits

...

7 Commits

Author SHA1 Message Date
dmitry.kirdyashkin 04191ab8fb v1.0.6
continuous-integration/drone/push Build is passing Details
2023-07-23 18:45:20 +03:00
dmitry.kirdyashkin ffd626cb1f v1.0.3
continuous-integration/drone/push Build is passing Details
2023-07-23 18:43:21 +03:00
dmitry.kirdyashkin 06e89473d8 v1.0.1
continuous-integration/drone/push Build is passing Details
2023-07-23 18:40:52 +03:00
dmitry.kirdyashkin 21a97faf4d v1.0.0
continuous-integration/drone/push Build is passing Details
2023-07-23 18:38:07 +03:00
dmitry.kirdyashkin aa14b270a0 t
continuous-integration/drone/push Build is failing Details
2023-07-23 18:14:08 +03:00
dmitry.kirdyashkin c3ceacd841 t 2023-07-23 18:14:05 +03:00
dmitry.kirdyashkin 7341050223 test disable autobuild
continuous-integration/drone/push Build is failing Details
2023-07-23 18:09:33 +03:00
4 changed files with 16 additions and 4 deletions

View File

@ -3,6 +3,3 @@ kind: template
load: new-release.yaml load: new-release.yaml
data: data:
image: gitea.kdiva.ru/infrastructure/archiver:latest image: gitea.kdiva.ru/infrastructure/archiver:latest
trigger:
event: push

1
file2
View File

@ -0,0 +1 @@
2

14
lib
View File

@ -14,6 +14,20 @@ function create-commit(){
} }
function create-release(){ function create-release(){
# if [[ -z "${TAG}" ]]; then
# echo "TAG key is not set"
# exit
# fi
if [[ $1 == 'latest' ]]; then
echo "Deleting old latest release"
RELEASE_LIST=$(curl -X GET -Url https://gitea.kdiva.ru/api/v1/repos/modules/sc-items/releases)
LATEST_RELEASE_ID=$(jq -r '.[] | select(.tag_name=="latest") | .id' <<< $RELEASE_LIST)
delete-release $LATEST_RELEASE_ID
delete-tag
RELEASE_TAG="$1"
fi
source ./vars source ./vars
RESPONSE=$(curl \ RESPONSE=$(curl \
-X 'POST' \ -X 'POST' \

View File

@ -16,7 +16,7 @@
"maximum": "10" "maximum": "10"
}, },
"url": "${DRONE_REPO_LINK}", "url": "${DRONE_REPO_LINK}",
"manifest": "${DRONE_REPO_LINK}/raw/branch/${DRONE_BRANCH}/module.json", "manifest": "${DRONE_REPO_LINK}/releases/download/latest/module.json",
"download": "${DRONE_REPO_LINK}/releases/download/$RELEASE_TAG/module.zip", "download": "${DRONE_REPO_LINK}/releases/download/$RELEASE_TAG/module.zip",
"packs": [ "packs": [
{ {