mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 12:02:53 +00:00
build: update gitlab-ci pipeline
This commit is contained in:
@@ -11,8 +11,9 @@ before_script:
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- deploy
|
- audit
|
||||||
- publish
|
- publish
|
||||||
|
- deploy
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -22,6 +23,21 @@ build:
|
|||||||
paths:
|
paths:
|
||||||
- lib
|
- lib
|
||||||
|
|
||||||
|
docker build:
|
||||||
|
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||||
|
stage: test
|
||||||
|
variables:
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
script:
|
||||||
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
|
||||||
|
- docker build -t registry.gitlab.com/openstapps/projectmanagement/builder -f images/builder/Dockerfile .
|
||||||
|
- docker build -t registry.gitlab.com/openstapps/projectmanagement/node -f images/node/Dockerfile .
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
before_script: []
|
||||||
|
|
||||||
docker-builder:
|
docker-builder:
|
||||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||||
stage: build
|
stage: build
|
||||||
@@ -56,20 +72,20 @@ docker-node:
|
|||||||
- docker
|
- docker
|
||||||
before_script: []
|
before_script: []
|
||||||
|
|
||||||
audit:
|
npm:
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
except:
|
except:
|
||||||
- schedules
|
- schedules
|
||||||
script:
|
script:
|
||||||
- npm audit
|
- npm audit
|
||||||
stage: test
|
stage: audit
|
||||||
|
|
||||||
scheduled-audit:
|
scheduled npm:
|
||||||
only:
|
only:
|
||||||
- schedules
|
- schedules
|
||||||
script:
|
script:
|
||||||
- npm audit
|
- npm audit
|
||||||
stage: test
|
stage: audit
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user