Skip to content

Commit 008e3a9

Browse files
dandimeodandimeonerpaula
authored
Enable Forked Repo PR on CircleCI (#322)
* use to git clone docs repo in plain build * use absolute paths * use semicolon tag on git fetch * add origin to fetch --------- Co-authored-by: dandimeo <[email protected]> Co-authored-by: Paula Mihu <[email protected]>
1 parent d7bd02e commit 008e3a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.circleci/base_config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,10 @@ jobs:
371371
- run:
372372
name: Clone docs repo
373373
command: |
374-
git clone --depth 1 [email protected]:arangodb/docs-hugo.git --branch $CIRCLE_BRANCH
374+
git clone [email protected]:arangodb/docs-hugo.git
375+
cd /home/circleci/project/docs-hugo
376+
git fetch origin $CIRCLE_BRANCH:$CIRCLE_SHA1 && git checkout $CIRCLE_SHA1
377+
375378
376379
- run:
377380
name: Build site
@@ -380,7 +383,7 @@ jobs:
380383
export HUGO_URL=<< parameters.url >>
381384
export HUGO_ENV=frontend
382385
383-
cd docs-hugo/toolchain/docker/amd64
386+
cd /home/circleci/project/docs-hugo/toolchain/docker/amd64
384387
docker compose -f docker-compose.plain-build.yml up --abort-on-container-exit
385388
- upload-summary:
386389
summary-name: "plain-build-summary"

0 commit comments

Comments
 (0)