Create workspace in DinD
Some checks failed
Some checks failed
This commit is contained in:
parent
aa7a7e3d1c
commit
8b01d55ecd
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ jobs:
|
|||
|
||||
- name: Checkout code to DinD container
|
||||
run: |
|
||||
# Create workspace directory in DinD container
|
||||
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 }})"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue