fix: add SKIP_PUSH env var to skip push for smoke test
This commit is contained in:
parent
e78ae32225
commit
697f96d3aa
2 changed files with 7 additions and 2 deletions
|
|
@ -1920,8 +1920,10 @@ p.write_text(text)
|
||||||
echo "Repo: ${repo_root} (existing clone)"
|
echo "Repo: ${repo_root} (existing clone)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Push to local Forgejo
|
# Push to local Forgejo (skip if SKIP_PUSH is set)
|
||||||
push_to_forge "$repo_root" "$forge_url" "$forge_repo"
|
if [ "${SKIP_PUSH:-false}" = "false" ]; then
|
||||||
|
push_to_forge "$repo_root" "$forge_url" "$forge_repo"
|
||||||
|
fi
|
||||||
|
|
||||||
# Detect primary branch
|
# Detect primary branch
|
||||||
if [ -z "$branch" ]; then
|
if [ -z "$branch" ]; then
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,9 @@ git commit --quiet -m "Initial commit"
|
||||||
export SMOKE_FORGE_URL="$FORGE_URL"
|
export SMOKE_FORGE_URL="$FORGE_URL"
|
||||||
export FORGE_URL
|
export FORGE_URL
|
||||||
|
|
||||||
|
# Skip push to mock server (no git support)
|
||||||
|
export SKIP_PUSH=true
|
||||||
|
|
||||||
if bash "${FACTORY_ROOT}/bin/disinto" init \
|
if bash "${FACTORY_ROOT}/bin/disinto" init \
|
||||||
"${TEST_SLUG}" \
|
"${TEST_SLUG}" \
|
||||||
--bare --yes \
|
--bare --yes \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue