Merge pull request 'ci: Gitea Actions Workflow für automatischen Synapse-Image-Build' (#4) from actions2 into main
Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
@@ -120,12 +120,17 @@ jobs:
|
|||||||
NTFY_TOKEN: ${{ secrets.NTFY_AUTH_TOKEN }}
|
NTFY_TOKEN: ${{ secrets.NTFY_AUTH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
VERSIONED_TAG="${{ steps.synapse.outputs.versioned_tag }}"
|
VERSIONED_TAG="${{ steps.synapse.outputs.versioned_tag }}"
|
||||||
|
REGISTRY_HOST="${{ vars.REGISTRY_HOST }}"
|
||||||
|
OWNER="${{ gitea.repository_owner }}"
|
||||||
|
IMAGE="${{ env.IMAGE_NAME }}"
|
||||||
|
SERVER_URL="${{ gitea.server_url }}"
|
||||||
|
REPO="${{ gitea.repository }}"
|
||||||
TITLE="✅ Synapse aktualisiert"
|
TITLE="✅ Synapse aktualisiert"
|
||||||
MESSAGE="Neues Docker-Image '${VERSIONED_TAG}' wurde erfolgreich gebaut und in die Registry gepusht."
|
MESSAGE="Neues Docker-Image '${VERSIONED_TAG}' erfolgreich gebaut und in die Registry ${REGISTRY_HOST}/${OWNER}/-/packages/container/${IMAGE} gepusht. -- Weitere Infos hier: ${SERVER_URL}/${REPO}"
|
||||||
|
|
||||||
# Öffentlicher Topic (kein Auth) – optional
|
# Öffentlicher Topic (kein Auth) – optional
|
||||||
if [ -n "$NTFY_PUBLIC" ]; then
|
if [ -n "$NTFY_PUBLIC" ]; then
|
||||||
curl -sf -X POST "$NTFY_PUBLIC" \
|
curl -f -X POST "$NTFY_PUBLIC" \
|
||||||
-H "Title: ${TITLE}" \
|
-H "Title: ${TITLE}" \
|
||||||
-H "Priority: 4" \
|
-H "Priority: 4" \
|
||||||
-d "$MESSAGE" \
|
-d "$MESSAGE" \
|
||||||
Reference in New Issue
Block a user