This commit is contained in:
62
.drone.yml
62
.drone.yml
@@ -64,7 +64,7 @@ steps:
|
|||||||
- "--yes"
|
- "--yes"
|
||||||
- "--key"
|
- "--key"
|
||||||
- "env://COSIGN_KEY"
|
- "env://COSIGN_KEY"
|
||||||
- "$${IMAGE_DIGEST}"
|
- "$IMAGE_DIGEST"
|
||||||
environment:
|
environment:
|
||||||
COSIGN_KEY:
|
COSIGN_KEY:
|
||||||
from_secret: COSIGN_KEY
|
from_secret: COSIGN_KEY
|
||||||
@@ -76,34 +76,40 @@ steps:
|
|||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
# 3️⃣ Create Gitea Release
|
# 3️⃣ Create Gitea Release
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
- name: create-release
|
# - name: create-release
|
||||||
image: curlimages/curl:8.10.1
|
# image: curlimages/curl:8.10.1
|
||||||
environment:
|
# environment:
|
||||||
GITEA_URL:
|
# GITEA_URL:
|
||||||
from_secret: GITEA_URL
|
# from_secret: GITEA_URL
|
||||||
GITEA_TOKEN:
|
# GITEA_TOKEN:
|
||||||
from_secret: GITEA_TOKEN
|
# from_secret: GITEA_TOKEN
|
||||||
commands:
|
# commands:
|
||||||
- echo "=== 🏷️ Creating Gitea release ==="
|
# - echo "=== 🏷️ Creating Gitea release ==="
|
||||||
- . build.env
|
# - . build.env
|
||||||
- RELEASE_NAME="Release $VERSION_TAG"
|
# - RELEASE_NAME="Release $VERSION_TAG"
|
||||||
- RELEASE_BODY="Automatisch erstellter Release für Build $DRONE_BUILD_NUMBER\n\nImage:\n\`\`\`\n$IMAGE_FULL\n\`\`\`"
|
# - 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" \
|
# curl -s -X POST "$GITEA_URL/api/v1/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/releases" \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
# -H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
# -H "Content-Type: application/json" \
|
||||||
-d "{
|
# -d "{
|
||||||
\"tag_name\": \"$VERSION_TAG\",
|
# \"tag_name\": \"$VERSION_TAG\",
|
||||||
\"name\": \"$RELEASE_NAME\",
|
# \"name\": \"$RELEASE_NAME\",
|
||||||
\"body\": \"$RELEASE_BODY\",
|
# \"body\": \"$RELEASE_BODY\",
|
||||||
\"draft\": false,
|
# \"draft\": false,
|
||||||
\"prerelease\": false
|
# \"prerelease\": false
|
||||||
}"
|
# }"
|
||||||
- echo "✅ Release created in Gitea."
|
# - echo "✅ Release created in Gitea."
|
||||||
depends_on:
|
# depends_on:
|
||||||
- sign-image
|
# - sign-image
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_sock
|
- name: docker_sock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|||||||
Reference in New Issue
Block a user