Commit e1067fc5 authored by Jure's avatar Jure

ci: add .git to the Docker container

Because commitlint needs a .git repository to lint all commits on a branch, we're adding it to the
Docker container.

re #121
parent 287400f3
Pipeline #4397 passed with stages
in 5 minutes and 2 seconds
...@@ -45,8 +45,8 @@ lint:commits: ...@@ -45,8 +45,8 @@ lint:commits:
image: $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA image: $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
stage: test stage: test
script: script:
- cd ${HOME} - cp -r .git ${HOME}/ && cd ${HOME}
- yarn commitlint --from=master --to=$CI_COMMIT_REF_NAME - yarn commitlint --from=origin/master --to=$CI_COMMIT_SHA
test: test:
image: $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA image: $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment