enable gitea tag and release
Some checks failed
continuous-integration/drone/push Build encountered an error
Some checks failed
continuous-integration/drone/push Build encountered an error
This commit is contained in:
52
.drone.yml
52
.drone.yml
@@ -90,32 +90,32 @@ steps:
|
||||
# --------------------------------------------------
|
||||
# 3️⃣ Create Gitea Release
|
||||
# --------------------------------------------------
|
||||
# - name: create-release
|
||||
# image: curlimages/curl:8.10.1
|
||||
# environment:
|
||||
# GITEA_URL:
|
||||
# from_secret: GITEA_URL
|
||||
# GITEA_TOKEN:
|
||||
# from_secret: GITEA_TOKEN
|
||||
# commands:
|
||||
# - echo "=== 🏷️ Creating Gitea release ==="
|
||||
# - . build.env
|
||||
# - RELEASE_NAME="Release $VERSION_TAG"
|
||||
# - RELEASE_BODY="Automatisch erstellter Release für Build $DRONE_BUILD_NUMBER\n\nImage:\n\`\`\`\n$IMAGE_FULL\n\`\`\`"
|
||||
# - |
|
||||
# curl -s -X POST "$GITEA_URL/api/v1/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/releases" \
|
||||
# -H "Authorization: token $GITEA_TOKEN" \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d "{
|
||||
# \"tag_name\": \"$VERSION_TAG\",
|
||||
# \"name\": \"$RELEASE_NAME\",
|
||||
# \"body\": \"$RELEASE_BODY\",
|
||||
# \"draft\": false,
|
||||
# \"prerelease\": false
|
||||
# }"
|
||||
# - echo "✅ Release created in Gitea."
|
||||
# depends_on:
|
||||
# - sign-image
|
||||
- name: create-release
|
||||
image: curlimages/curl:8.10.1
|
||||
environment:
|
||||
GITEA_URL:
|
||||
from_secret: GITEA_URL
|
||||
GITEA_TOKEN:
|
||||
from_secret: GITEA_TOKEN
|
||||
commands:
|
||||
- echo "=== 🏷️ Creating Gitea release ==="
|
||||
- . build.env
|
||||
- RELEASE_NAME="Release $VERSION_TAG"
|
||||
- RELEASE_BODY="Automatisch erstellter Release für Build $DRONE_BUILD_NUMBER\n\nImage:\n\`\`\`\n$IMAGE_FULL\n\`\`\`"
|
||||
- |
|
||||
curl -s -X POST "$GITEA_URL/api/v1/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/releases" \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"tag_name\": \"$VERSION_TAG\",
|
||||
\"name\": \"$RELEASE_NAME\",
|
||||
\"body\": \"$RELEASE_BODY\",
|
||||
\"draft\": false,
|
||||
\"prerelease\": false
|
||||
}"
|
||||
- echo "✅ Release created in Gitea."
|
||||
depends_on:
|
||||
- sign-image
|
||||
|
||||
volumes:
|
||||
- name: docker_sock
|
||||
|
||||
Reference in New Issue
Block a user