Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
UNL ITS
docker-ci
Commits
3e96a6c8
"README.md" did not exist on "e970ebea9bbe8da611d36e0164a38cbed5a78cd2"
Commit
3e96a6c8
authored
5 years ago
by
Raul Barreras
Browse files
Options
Downloads
Patches
Plain Diff
fix Test Dependency Checker job
parent
209028b5
No related branches found
No related tags found
1 merge request
!33
Resolve "Integrate dependency-check container with Sonarqube"
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-23
8 additions, 23 deletions
.gitlab-ci.yml
with
8 additions
and
23 deletions
.gitlab-ci.yml
+
8
−
23
View file @
3e96a6c8
...
@@ -5,7 +5,7 @@ stages:
...
@@ -5,7 +5,7 @@ stages:
-
publish
-
publish
-
security
-
security
Check Makefile
:
.
Check Makefile
:
stage
:
verify
stage
:
verify
tags
:
tags
:
-
linux, dockerd
-
linux, dockerd
...
@@ -19,7 +19,7 @@ Lint and Validate dockerfiles:
...
@@ -19,7 +19,7 @@ Lint and Validate dockerfiles:
script
:
script
:
-
make test
-
make test
Make All Images
:
.
Make All Images
:
stage
:
build
stage
:
build
image
:
projectatomic/dockerfile-lint
image
:
projectatomic/dockerfile-lint
tags
:
tags
:
...
@@ -27,7 +27,7 @@ Make All Images:
...
@@ -27,7 +27,7 @@ Make All Images:
script
:
script
:
-
make
-
make
Test Sonar Scanner
:
.
Test Sonar Scanner
:
stage
:
test
stage
:
test
tags
:
tags
:
-
dockerd
-
dockerd
...
@@ -35,38 +35,23 @@ Test Sonar Scanner:
...
@@ -35,38 +35,23 @@ Test Sonar Scanner:
-
docker run --rm its-registry.unl.edu/unl-its/docker-ci/static-code-analysis sonar-scanner -v
-
docker run --rm its-registry.unl.edu/unl-its/docker-ci/static-code-analysis sonar-scanner -v
-
docker run --rm -v "${PWD}:/work" -w /work its-registry.unl.edu/unl-its/docker-ci/detect-secrets -s
-
docker run --rm -v "${PWD}:/work" -w /work its-registry.unl.edu/unl-its/docker-ci/detect-secrets -s
.
Test Dependency Checker
:
Test Dependency Checker
:
stage
:
test
stage
:
test
tags
:
tags
:
-
dockerd
-
dockerd
script
:
script
:
-
docker run --rm -v "${PWD}/t/dependency-check/simple-app:/work" -w /work node:alpine npm install
-
docker run --rm -v "${PWD}/t/dependency-check/simple-app:/work" -w /work node:alpine npm install
-
docker run --rm -v "${PWD}/t/dependency-check/simple-app:/work" -w /work its-registry.unl.edu/unl-its/docker-ci/dependency-check
-
docker run --rm -v "${PWD}/t/dependency-check/simple-app:/work" -w /work -e DEPENDENCY_CHECK_OUT_DIR=./ its-registry.unl.edu/unl-its/docker-ci/dependency-check
-
docker run --rm its-registry.unl.edu/unl-its/docker-ci/static-code-analysis sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.projectKey=$CI_PROJECT_PATH_SLUG -Dsonar.sources=. -Dsonar.login=$SONAR_TOKEN
-
docker run --rm -v "${PWD}:/work" -w /work its-registry.unl.edu/unl-its/docker-ci/static-code-analysis sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.projectKey=$CI_PROJECT_PATH_SLUG -Dsonar.sources=. -Dsonar.login=$SONAR_TOKEN -Dsonar.dependencyCheck.reportPath=dependency-check-report.xml -Dsonar.dependencyCheck.htmlReportPath=dependency-check-report.html
artifacts
:
paths
:
-
dependency-check-report.xml
-
dependency-check-report.html
expire_in
:
1 day
.Test PHP Lint
:
Test PHP Lint
:
stage
:
test
stage
:
test
tags
:
tags
:
-
linux, dockerd
-
linux, dockerd
script
:
script
:
-
t/php-lint/tests.sh
-
t/php-lint/tests.sh
.Push to Container Registry
:
Test PHP Lint
:
stage
:
test
tags
:
-
linux, dockerd
script
:
-
t/php-lint/tests.sh
Push to Container Registry
:
after_script
:
after_script
:
-
rm -f /var/lib/gitlab-runner/.docker/config.json
-
rm -f /var/lib/gitlab-runner/.docker/config.json
stage
:
publish
stage
:
publish
...
...
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