ci: guard second checkout in merged build_cicd job
Some checks failed
CICD / End-to-End Tests (pull_request) Blocked by required conditions
CICD / E2E Tests Failure Postmortem (pull_request) Blocked by required conditions
CICD / Build and Push CICD Images (pull_request) Successful in 11m52s
CICD / Build CICD Image Failure Postmortem (pull_request) Has been skipped
CICD / Dependency Audits (Informational) (pull_request) Failing after 10m48s
CICD / Source Checks (pull_request) Successful in 12m34s
CICD / CICD Tests Complete (pull_request) Successful in 6s
CICD / Source Lanes Failure Postmortem (pull_request) Has been skipped
CICD / Build Release Images (pull_request) Has been cancelled
CICD / Build Tester Images (pull_request) Has been cancelled
CICD / Production Images Complete (pull_request) Has been cancelled
CICD / Production Image Failures Postmortem (pull_request) Has been cancelled
CICD / Runtime Black-Box Integration Tests (pull_request) Has been cancelled
CICD / Integration Tests Failure Postmortem (pull_request) Has been cancelled
Some checks failed
CICD / End-to-End Tests (pull_request) Blocked by required conditions
CICD / E2E Tests Failure Postmortem (pull_request) Blocked by required conditions
CICD / Build and Push CICD Images (pull_request) Successful in 11m52s
CICD / Build CICD Image Failure Postmortem (pull_request) Has been skipped
CICD / Dependency Audits (Informational) (pull_request) Failing after 10m48s
CICD / Source Checks (pull_request) Successful in 12m34s
CICD / CICD Tests Complete (pull_request) Successful in 6s
CICD / Source Lanes Failure Postmortem (pull_request) Has been skipped
CICD / Build Release Images (pull_request) Has been cancelled
CICD / Build Tester Images (pull_request) Has been cancelled
CICD / Production Images Complete (pull_request) Has been cancelled
CICD / Production Image Failures Postmortem (pull_request) Has been cancelled
CICD / Runtime Black-Box Integration Tests (pull_request) Has been cancelled
CICD / Integration Tests Failure Postmortem (pull_request) Has been cancelled
This commit is contained in:
@@ -376,8 +376,10 @@ jobs:
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
retry_cmd 5 2 sh -c "ssh-keyscan -p '${GITEA_SSH_PORT}' '${GITEA_SSH_HOST}' >> ~/.ssh/known_hosts 2>/dev/null"
|
||||
|
||||
retry_cmd 5 3 env GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes -o StrictHostKeyChecking=no" \
|
||||
git clone --depth 1 --no-checkout "${GITEA_REPO_SSH_URL}" .
|
||||
if [ ! -d .git ]; then
|
||||
retry_cmd 5 3 env GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes -o StrictHostKeyChecking=no" \
|
||||
git clone --depth 1 --no-checkout "${GITEA_REPO_SSH_URL}" .
|
||||
fi
|
||||
|
||||
if retry_cmd 5 3 env GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes -o StrictHostKeyChecking=no" \
|
||||
git fetch --depth 1 origin "${HEAD_SHA}" >/dev/null 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user