Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4c73433eab | |||
| b9de1da855 |
@@ -49,7 +49,7 @@ jobs:
|
|||||||
|
|
||||||
report-summary:
|
report-summary:
|
||||||
name: Report Summary
|
name: Report Summary
|
||||||
needs: [load-config, helm-push, chart-gitops]
|
needs: [load-config, check-version, helm-push, chart-gitops]
|
||||||
if: always()
|
if: always()
|
||||||
uses: niko/gitea-ci-library/.gitea/workflows/report-summary.yml@main
|
uses: niko/gitea-ci-library/.gitea/workflows/report-summary.yml@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
echo "gitops-dispatch: validating env vars..."
|
||||||
: "${GITOPS_FILE:?}"
|
: "${GITOPS_FILE:?}"
|
||||||
: "${GITOPS_YQ_TPL:?}"
|
: "${GITOPS_YQ_TPL:?}"
|
||||||
: "${GITOPS_VERSION:?}"
|
: "${GITOPS_VERSION:?}"
|
||||||
@@ -13,6 +14,7 @@ set -euo pipefail
|
|||||||
|
|
||||||
TIMEOUT="${GITOPS_DISPATCH_TIMEOUT:-30}"
|
TIMEOUT="${GITOPS_DISPATCH_TIMEOUT:-30}"
|
||||||
|
|
||||||
|
echo "gitops-dispatch: constructing inputs..."
|
||||||
INPUTS=$(jq -nc \
|
INPUTS=$(jq -nc \
|
||||||
--arg file "$GITOPS_FILE" \
|
--arg file "$GITOPS_FILE" \
|
||||||
--arg yq_tpl "$GITOPS_YQ_TPL" \
|
--arg yq_tpl "$GITOPS_YQ_TPL" \
|
||||||
@@ -23,6 +25,7 @@ INPUTS=$(jq -nc \
|
|||||||
'{file: $file, yq_tpl: $yq_tpl, version: $version, source_repo: $source_repo, source_commit: $source_commit, git_tag_prefix: $git_tag_prefix}')
|
'{file: $file, yq_tpl: $yq_tpl, version: $version, source_repo: $source_repo, source_commit: $source_commit, git_tag_prefix: $git_tag_prefix}')
|
||||||
|
|
||||||
DIR="$(cd "$(dirname "$0")" && pwd)"
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
|
echo "gitops-dispatch: dispatching to $GITOPS_REPO/$GITOPS_WORKFLOW..."
|
||||||
set +e
|
set +e
|
||||||
OUTPUT=$(bash "$DIR/dispatch-workflow.sh" \
|
OUTPUT=$(bash "$DIR/dispatch-workflow.sh" \
|
||||||
"$GITOPS_REPO" "$GITOPS_WORKFLOW" "main" \
|
"$GITOPS_REPO" "$GITOPS_WORKFLOW" "main" \
|
||||||
@@ -30,7 +33,9 @@ OUTPUT=$(bash "$DIR/dispatch-workflow.sh" \
|
|||||||
EXIT=$?
|
EXIT=$?
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
echo "=== DISPATCH OUTPUT (exit=$EXIT) ==="
|
||||||
echo "$OUTPUT"
|
echo "$OUTPUT"
|
||||||
|
echo "=== END DISPATCH ==="
|
||||||
|
|
||||||
STATUS="failure"
|
STATUS="failure"
|
||||||
GITOPS_SHA=""
|
GITOPS_SHA=""
|
||||||
|
|||||||
Reference in New Issue
Block a user