Clean workspace folder first before git clone to DinD
Some checks failed
Some checks failed
This commit is contained in:
parent
8b01d55ecd
commit
59233883fc
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ jobs:
|
|||
docker exec ci-dind mkdir -p /workspace
|
||||
|
||||
# Checkout code directly into DinD container using the Forgejo repository that triggered the build
|
||||
docker exec ci-dind sh -c "cd /workspace && git clone ${{ env.GITEA_SERVER_URL }}/${{ env.GITEA_REPOSITORY }}.git . || (cd /workspace && git fetch && git reset --hard origin/${{ env.GITEA_REF }})"
|
||||
docker exec ci-dind sh -c "cd /workspace && rm -rf .git && git clone ${{ env.GITEA_SERVER_URL }}/${{ env.GITEA_REPOSITORY }}.git ."
|
||||
|
||||
# Copy docker-compose.test.yml to DinD container (in case it's not in the repo)
|
||||
docker cp docker-compose.test.yml ci-dind:/workspace/ || true
|
||||
|
|
Loading…
Add table
Reference in a new issue