Merge branch 'set-dependency-scanning-config-1' into 'main'
在`.gitlab-ci.yml`中配置依赖扫描,如果该文件不存在则创建该文件 See merge request ds/ds.pages.yoshino-s.xyz!1
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
# The Docker image that will be used to build your app
|
||||
# You can override the included template(s) by including variable overrides
|
||||
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
|
||||
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
|
||||
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
|
||||
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
|
||||
# Note that environment variables can be set in several places
|
||||
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
||||
image: node:lts
|
||||
# Functions that should be executed before the build script is run
|
||||
before_script:
|
||||
- yarn install --frozen-lockfile
|
||||
|
||||
- yarn install --frozen-lockfile
|
||||
stages:
|
||||
- release
|
||||
- test
|
||||
- deploy
|
||||
|
||||
- release
|
||||
- test
|
||||
- deploy
|
||||
pages:
|
||||
script:
|
||||
- yarn build
|
||||
- mv dist public
|
||||
- yarn build
|
||||
- mv dist public
|
||||
artifacts:
|
||||
paths:
|
||||
# The folder that contains the files to be exposed at the Page URL
|
||||
- public
|
||||
- public
|
||||
rules:
|
||||
# This ensures that only pushes to the default branch will trigger
|
||||
# a pages deploy
|
||||
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
||||
|
||||
- if: "$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
|
||||
include:
|
||||
- project: template/gitlabci-template
|
||||
file: docker.gitlab-ci.yml
|
||||
- project: template/gitlabci-template
|
||||
file: docker.gitlab-ci.yml
|
||||
- template: Security/Dependency-Scanning.gitlab-ci.yml
|
||||
|
||||
Reference in New Issue
Block a user