Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci-pipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IOPSYS
gitlab-ci-pipeline
Commits
73afd835
Commit
73afd835
authored
2 years ago
by
Natalia Miakushina
Committed by
Roman Azarenko
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CI: add job for publishing images, switch to own registry (IOP-9341)
parent
1088f492
No related branches found
No related tags found
1 merge request
!17
CI for publish image in our registry for tags and devel-branch
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+27
-1
27 additions, 1 deletion
.gitlab-ci.yml
static-code-analysis.yml
+1
-1
1 addition, 1 deletion
static-code-analysis.yml
with
32 additions
and
2 deletions
.gitignore
+
4
−
0
View file @
73afd835
...
@@ -5,3 +5,7 @@ flawfinder.out
...
@@ -5,3 +5,7 @@ flawfinder.out
cppcheck.out
cppcheck.out
cpd.out
cpd.out
src/monitor.
src/monitor.
# ide
.vscode
.idea
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
27
−
1
View file @
73afd835
workflow
:
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
!=
"merge_request_event"'
code-analysis-update
:
code-analysis-update
:
stage
:
build
stage
:
build
image
:
iopsys/sdk-builder:latest
image
:
dev.
iopsys
.eu:5050/iopsys/iopsyswrt
/sdk-builder:latest
variables
:
variables
:
GIT_STRATEGY
:
none
GIT_STRATEGY
:
none
script
:
script
:
...
@@ -23,6 +27,28 @@ code-analysis-update:
...
@@ -23,6 +27,28 @@ code-analysis-update:
max
:
2
max
:
2
when
:
script_failure
when
:
script_failure
update-docker-image
:
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:v1.9.1-debug
entrypoint
:
[
"
"
]
script
:
# push to our registry
-
|
/kaniko/executor \
--context ${CI_PROJECT_DIR}/docker/code-analysis \
--cache \
--cache-copy-layers \
--cache-repo "${CI_REGISTRY_IMAGE}/code-analysis/cache" \
--dockerfile "${CI_PROJECT_DIR}/docker/code-analysis/Dockerfile" \
--destination "${CI_REGISTRY_IMAGE}/code-analysis:${CI_COMMIT_SHA}" \
--destination "${CI_REGISTRY_IMAGE}/code-analysis:${CI_COMMIT_REF_NAME}" \
${IS_DEFAULT_BRANCH:+--destination ${CI_REGISTRY_IMAGE}/code-analysis:latest}
rules
:
-
if
:
'
$CI_COMMIT_REF_PROTECTED
==
"true"'
interruptible
:
true
pages
:
pages
:
stage
:
deploy
stage
:
deploy
image
:
alpine:latest
image
:
alpine:latest
...
...
This diff is collapsed.
Click to expand it.
static-code-analysis.yml
+
1
−
1
View file @
73afd835
...
@@ -3,7 +3,7 @@ variables:
...
@@ -3,7 +3,7 @@ variables:
RUN_CPPCHECK
:
"
cppcheck
--enable=all
--error-exitcode=1
--suppress=unusedFunction
--suppress=unreadVariable
--suppress=unmatchedSuppression
."
RUN_CPPCHECK
:
"
cppcheck
--enable=all
--error-exitcode=1
--suppress=unusedFunction
--suppress=unreadVariable
--suppress=unmatchedSuppression
."
RUN_CPD
:
"
/home/user/pmd-bin-6.19.0/bin/run.sh
cpd
--minimum-tokens
200
--language
c
--exclude
./test/cmocka
--files"
RUN_CPD
:
"
/home/user/pmd-bin-6.19.0/bin/run.sh
cpd
--minimum-tokens
200
--language
c
--exclude
./test/cmocka
--files"
SOURCE_FOLDER
:
"
src"
SOURCE_FOLDER
:
"
src"
COMMON_IMAGE
:
"
iopsys/code-analysis:0.27"
COMMON_IMAGE
:
"
dev.
iopsys
.eu:5050/iopsys/gitlab-ci-pipeline
/code-analysis:0.27"
DEBUG
:
"
FALSE"
DEBUG
:
"
FALSE"
run_static_code_analysis
:
run_static_code_analysis
:
...
...
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