ci: skip gitops update if GITEOPS_REPO secret not set
This commit is contained in:
parent
d7b7f3d3c1
commit
a3cc407207
1 changed files with 5 additions and 0 deletions
|
|
@ -88,6 +88,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
if [ -z "$GITEOPS_REPO" ]; then
|
||||||
|
echo "GITEOPS_REPO secret not set, skipping GitOps update"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
GITEOPS_DIR=$(mktemp -d)
|
GITEOPS_DIR=$(mktemp -d)
|
||||||
git clone "$GITEOPS_REPO" "$GITEOPS_DIR"
|
git clone "$GITEOPS_REPO" "$GITEOPS_DIR"
|
||||||
cd "$GITEOPS_DIR"
|
cd "$GITEOPS_DIR"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue