Skip to content
Snippets Groups Projects
Commit 2cdcf30d authored by Ulf Seltmann's avatar Ulf Seltmann
Browse files

fixed .gitlab-ci.yml

fixed .dockerignore
parent f900df89
No related merge requests found
Pipeline #29 failed with stages
in 2 minutes and 51 seconds
.tmp *
.vscode \ No newline at end of file
bin
coverage
data
dist
docs
node_modules
public
site
src
test
.dockerignore
.gitignore
.gitlab-ci.yml
.npmignore
docker-compose.yml
Dockerfile
mkdocs.yml
package-lock.json
package.json
Readme.md
tsconfig.json
webpack.*
\ No newline at end of file
...@@ -10,33 +10,36 @@ variables: ...@@ -10,33 +10,36 @@ variables:
npm_install: npm_install:
stage: build_app stage: build_app
image: node:8-alpine image:
name: node:8-alpine
entrypoint: ["/bin/su", "node", "-c"]
script: script:
- test -d .npm && mv .npm ${HOME} - test -d .npm && mv .npm ${HOME}
- npm run build - npm run build
- npm run ci
- mv ${HOME}/.npm . - mv ${HOME}/.npm .
cache: cache:
key: "${CI_PROJECT_ID}" key: "${CI_PROJECT_ID}"
paths: paths:
- .npm - .npm
- public - lib
- node_modules - node_modules
- dist
- public - public
- test
tags: tags:
- docker - docker
npm_ci: npm_ci:
stage: test_app stage: test_app
image: node:8-alpine image:
name: node:8-alpine
entrypoint: ["/bin/su", "node", "-c"]
script: script:
- npm run ci - npm run ci
cache: cache:
key: "${CI_PROJECT_ID}" key: "${CI_PROJECT_ID}"
paths: paths:
- .npm - .npm
- dist - lib
- public - public
tags: tags:
- docker - docker
...@@ -45,7 +48,9 @@ npm_publish: ...@@ -45,7 +48,9 @@ npm_publish:
stage: publish_app stage: publish_app
only: only:
- master - master
image: node:8-alpine image:
name: node:8-alpine
entrypoint: ["/bin/su", "node", "-c"]
script: script:
- 'echo "//services.ub.uni-leipzig.de/nexus/repository/npm-ubl/:_authToken=${NPM_TOKEN}" > ~/.npmrc' - 'echo "//services.ub.uni-leipzig.de/nexus/repository/npm-ubl/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- npm publish - npm publish
......
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