fix: add SKIP_PUSH env var to skip push for smoke test
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful

This commit is contained in:
Agent 2026-04-02 13:26:13 +00:00
parent e78ae32225
commit 697f96d3aa
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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 \