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

adds npm-pack dependency to docker-build

parent 718eaed4
No related merge requests found
Pipeline #474 failed
...@@ -78,6 +78,8 @@ docker_build: ...@@ -78,6 +78,8 @@ docker_build:
-t image \ -t image \
. .
docker save --output=image.tar.gz image docker save --output=image.tar.gz image
dependencies:
- npm_pack
artifacts: artifacts:
name: docker-image name: docker-image
paths: paths:
...@@ -102,7 +104,7 @@ npm_publish: ...@@ -102,7 +104,7 @@ npm_publish:
only: only:
- /^release\/*/ - /^release\/*/
docker_publish: docker_publish_production:
stage: publish stage: publish
image: docker:latest image: docker:latest
services: services:
...@@ -120,10 +122,6 @@ docker_publish: ...@@ -120,10 +122,6 @@ docker_publish:
docker tag ubleipzig/dacap:${version} ubleipzig/dacap:${tag} docker tag ubleipzig/dacap:${version} ubleipzig/dacap:${tag}
docker push ubleipzig/dacap:${tag} docker push ubleipzig/dacap:${tag}
done done
cache:
key: "${CI_PROJECT_ID}"
paths:
- .npm
tags: tags:
- docker - docker
except: except:
...@@ -131,6 +129,30 @@ docker_publish: ...@@ -131,6 +129,30 @@ docker_publish:
only: only:
- /^release\/*/ - /^release\/*/
docker_publish_staging:
stage: publish
image: docker:latest
services:
- docker:dind
script: |
mkdir -p ~/.docker && echo "$DOCKER_AUTH_CONFIG" >~/.docker/config.json
docker load --input=image.tar.gz
docker tag image ubleipzig/dacap:staging
docker push ubleipzig/dacap:staging
tags:
- docker
only:
- master
deploy_staging:
stage: deploy
image: rancher:latest
environment:
name: staging
url: https://staging.ub.uni-leipzig.de/dacap
only:
- master
gh_pages: gh_pages:
stage: docs stage: docs
image: image:
......
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