Add dependency scanning
This commit is contained in:
@@ -11,16 +11,20 @@
|
||||
# DOCKER_IMAGE: ...
|
||||
# DOCKER_USER: ...
|
||||
# DOCKER_PASSWORD: ...
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
- upload
|
||||
- release
|
||||
|
||||
sast:
|
||||
stage: test
|
||||
include:
|
||||
- template: Security/SAST.gitlab-ci.yml
|
||||
- template: Security/Container-Scanning.gitlab-ci.yml
|
||||
include:
|
||||
- template: Security/SAST.gitlab-ci.yml
|
||||
- template: Security/Container-Scanning.gitlab-ci.yml
|
||||
- template: Security/Dependency-Scanning.gitlab-ci.yml
|
||||
|
||||
build-docker:
|
||||
stage: build
|
||||
only:
|
||||
@@ -36,6 +40,7 @@ build-docker:
|
||||
- docker build -t $IMAGE_TAG -t $CI_REGISTRY_IMAGE:latest .
|
||||
- docker push $IMAGE_TAG
|
||||
- docker push $CI_REGISTRY_IMAGE:latest
|
||||
|
||||
build-binary:
|
||||
stage: build
|
||||
only:
|
||||
@@ -56,6 +61,7 @@ build-binary:
|
||||
artifacts:
|
||||
paths:
|
||||
- bin/
|
||||
|
||||
upload:
|
||||
stage: upload
|
||||
image: curlimages/curl:latest
|
||||
@@ -74,6 +80,7 @@ upload:
|
||||
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/insultgen/${CI_COMMIT_TAG}/insultgen-${CI_COMMIT_TAG}-win-amd64.exe"'
|
||||
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/insultgen-${CI_COMMIT_TAG}-win-x86.exe
|
||||
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/insultgen/${CI_COMMIT_TAG}/insultgen-${CI_COMMIT_TAG}-win-x86.exe"'
|
||||
|
||||
release:
|
||||
stage: release
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:v0.4.0
|
||||
|
||||
Reference in New Issue
Block a user