Skip to content
Snippets Groups Projects
Commit c5a51d30 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
Pipeline #4395 passed with stages
in 6 minutes and 29 seconds
...@@ -46,7 +46,7 @@ lint:commits: ...@@ -46,7 +46,7 @@ lint:commits:
stage: test stage: test
script: script:
- cd ${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
......
...@@ -3,6 +3,7 @@ FROM pubsweet/pubsweet:base ...@@ -3,6 +3,7 @@ FROM pubsweet/pubsweet:base
COPY package.json yarn.lock ./ COPY package.json yarn.lock ./
COPY lerna.json .eslintignore .eslintrc .prettierrc .stylelintignore .stylelintrc ./ COPY lerna.json .eslintignore .eslintrc .prettierrc .stylelintignore .stylelintrc ./
COPY packages packages COPY packages packages
COPY .git .git
RUN [ "yarn", "config", "set", "workspaces-experimental", "true" ] RUN [ "yarn", "config", "set", "workspaces-experimental", "true" ]
......
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