Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
deploy-ssh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
images
deploy-ssh
Commits
23cd62f2
Commit
23cd62f2
authored
5 months ago
by
Lukas Schreiner
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/security' into 'master'
Added SAST checking See merge request
!1
parents
4d575d9f
8ec7dc04
Branches
Branches containing commit
No related tags found
1 merge request
!1
Added SAST checking
Pipeline
#3212
canceled
5 months ago
Stage: build
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-1
11 additions, 1 deletion
.gitlab-ci.yml
with
11 additions
and
1 deletion
.gitlab-ci.yml
+
11
−
1
View file @
23cd62f2
...
...
@@ -12,11 +12,17 @@ variables:
-
docker:dind
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" --build-arg ALPINE_VERSION=$ALPINE_VERSION .
-
|
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" --build-arg ALPINE_VERSION=$ALPINE_VERSION .
else
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" --build-arg ALPINE_VERSION=$ALPINE_VERSION .
fi
-
docker push "$CI_REGISTRY_IMAGE" --all-tags
include
:
-
template
:
Jobs/Container-Scanning.gitlab-ci.yml
-
template
:
Security/SAST.gitlab-ci.yml
build:deploy
:
extends
:
.build_tpl
...
...
@@ -25,4 +31,8 @@ container_scanning:
variables
:
CS_IMAGE
:
"
$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA"
CS_DISABLE_LANGUAGE_VULNERABILITY_SCAN
:
"
false"
GIT_STRATEGY
:
"
fetch"
sast
:
stage
:
test
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment