ryzen-controller/.gitlab-ci.yml
2019-03-10 16:25:23 +01:00

71 lines
1.5 KiB
YAML

stages:
- check
- install
- package
- installer
dependency_scanning:
stage: check
only:
- branches@le.storm1er/ryzen-controller
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env DEP_SCAN_DISABLE_REMOTE_CHECKS="${DEP_SCAN_DISABLE_REMOTE_CHECKS:-false}"
--volume "$PWD:/code"
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/dependency-scanning:$SP_VERSION" /code
artifacts:
reports:
dependency_scanning: gl-dependency-scanning-report.json
node:
only:
- tags@le.storm1er/ryzen-controller
stage: install
tags: [ docker ]
image: electronuserland/builder:wine-mono
script:
- npm install
cache:
paths:
- node_modules/
artifacts:
paths:
- node_modules/
win32:
only:
- tags@le.storm1er/ryzen-controller
stage: package
tags: [ docker ]
image: electronuserland/builder:wine-mono
script:
- npm run-script package
artifacts:
paths:
- release-builds/
dependencies:
- node
win32-installer:
only:
- tags@le.storm1er/ryzen-controller
stage: installer
tags: [ docker ]
image: electronuserland/builder:wine-mono
script:
- npm run-script build
artifacts:
paths:
- installer-builds/
dependencies:
- node
- win32