Skip to content
Snippets Groups Projects
Commit e1067fc5 authored by Jure's avatar Jure
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
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