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

removed npm publish in favor to npm pack

parent 6d635c4f
No related merge requests found
Pipeline #15 failed with stages
in 2 minutes and 29 seconds
* .tmp
\ No newline at end of file .vscode
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
...@@ -3,4 +3,5 @@ ...@@ -3,4 +3,5 @@
/public /public
/data /data
/site /site
/coverage /coverage
\ No newline at end of file *.tgz
\ No newline at end of file
...@@ -37,20 +37,20 @@ npm_ci: ...@@ -37,20 +37,20 @@ npm_ci:
tags: tags:
- docker - docker
npm_publish: npm_pack:
stage: publish_app stage: publish_app
only: only:
- master - master
image: node:8-alpine image: node:8-alpine
script: script:
- echo "//docker.ub.intern.uni-leipzig.de/:_authToken=${NPM_TOKEN}" > ~/.npmrc - npm pack
- npm publish
cache: cache:
key: "${CI_COMMIT_SHA}" key: "${CI_COMMIT_SHA}"
paths: paths:
- node_modules - node_modules
- dist - dist
- public - public
- "*.tgz"
tags: tags:
- docker - docker
...@@ -62,10 +62,10 @@ docker_build: ...@@ -62,10 +62,10 @@ docker_build:
services: services:
- docker:dind - docker:dind
script: script:
- docker login --username '${DOCKER_USER}' --password '${DOCKER_PASSWORD}' - docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD}
- docker build --no-cache --pull -t ubleipzig/dacap:latest . - docker build --no-cache --pull -t bdddev/dacap:latest .
- docker tag ubleipzig/dacap:latest ubleipzig/dacap:${CI_PIPELINE_ID} - docker tag ubleipzig/dacap:latest bdddev/dacap:${CI_PIPELINE_ID}
- docker push ubleipzig/dacap:${CI_PIPELINE_ID} - docker push bdddev/dacap:${CI_PIPELINE_ID}
- docker push ubleipzig/dacap:latest - docker push bdddev/dacap:latest
tags: tags:
- docker - docker
...@@ -16,4 +16,5 @@ ...@@ -16,4 +16,5 @@
/package-lock.json /package-lock.json
/report.xml /report.xml
/Dockerfile /Dockerfile
/*.tgz /*.tgz
\ No newline at end of file /.gitlab-ci.yml
\ No newline at end of file
...@@ -2,6 +2,9 @@ FROM library/node:8-alpine ...@@ -2,6 +2,9 @@ FROM library/node:8-alpine
VOLUME ["/data"] VOLUME ["/data"]
EXPOSE 3000 EXPOSE 3000
ENV npm_config_registry=https://docker.ub.intern.uni-leipzig.de/npm \ ENV npm_config_registry=https://docker.ub.intern.uni-leipzig.de/npm \
data_dir=/data data_dir=/data \
RUN npm install -g dacap NODE_ENV=production \
APP_VERSION=1.0.9
COPY dacap-${APP_VERSION}.tgz /tmp/
RUN npm install -g /tmp/dacap-${APP_VERSION}.tgz
CMD chown node:node -R ${data_dir} && su node -c dacap CMD chown node:node -R ${data_dir} && su node -c dacap
\ No newline at end of file
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