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
*
\ No newline at end of file
.tmp
.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 @@
/public
/data
/site
/coverage
\ No newline at end of file
/coverage
*.tgz
\ No newline at end of file
......@@ -37,20 +37,20 @@ npm_ci:
tags:
- docker
npm_publish:
npm_pack:
stage: publish_app
only:
- master
image: node:8-alpine
script:
- echo "//docker.ub.intern.uni-leipzig.de/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- npm publish
- npm pack
cache:
key: "${CI_COMMIT_SHA}"
paths:
- node_modules
- dist
- public
- "*.tgz"
tags:
- docker
......@@ -62,10 +62,10 @@ docker_build:
services:
- docker:dind
script:
- docker login --username '${DOCKER_USER}' --password '${DOCKER_PASSWORD}'
- docker build --no-cache --pull -t ubleipzig/dacap:latest .
- docker tag ubleipzig/dacap:latest ubleipzig/dacap:${CI_PIPELINE_ID}
- docker push ubleipzig/dacap:${CI_PIPELINE_ID}
- docker push ubleipzig/dacap:latest
- docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD}
- docker build --no-cache --pull -t bdddev/dacap:latest .
- docker tag ubleipzig/dacap:latest bdddev/dacap:${CI_PIPELINE_ID}
- docker push bdddev/dacap:${CI_PIPELINE_ID}
- docker push bdddev/dacap:latest
tags:
- docker
......@@ -16,4 +16,5 @@
/package-lock.json
/report.xml
/Dockerfile
/*.tgz
\ No newline at end of file
/*.tgz
/.gitlab-ci.yml
\ No newline at end of file
......@@ -2,6 +2,9 @@ FROM library/node:8-alpine
VOLUME ["/data"]
EXPOSE 3000
ENV npm_config_registry=https://docker.ub.intern.uni-leipzig.de/npm \
data_dir=/data
RUN npm install -g dacap
data_dir=/data \
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
\ 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