Skip to content
Snippets Groups Projects
Commit 73afd835 authored by Natalia Miakushina's avatar Natalia Miakushina Committed by Roman Azarenko
Browse files

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!17CI for publish image in our registry for tags and devel-branch
...@@ -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
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
......
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment