Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

Configure Container Scanning in `.gitlab-ci.yml`, creating this file if it does not already exist

Closed Vincent SIMONIN requested to merge set-container-scanning-config-1 into main
+ 12
1
@@ -18,7 +18,8 @@ workflow:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
default:
tags:
- ovh
- lab
- docker
stages:
- default_validate
- lint
@@ -31,6 +32,8 @@ include:
ref: main
- template: Jobs/Container-Scanning.gitlab-ci.yml
lint-job:
tags:
- ovh
stage: lint
before_script:
- python3 -m venv "$CI_PROJECT_DIR/plugins/venv"
@@ -44,10 +47,14 @@ lint-job:
- deactivate
- rm -rf "$CI_PROJECT_DIR/plugins/venv"
build-job:
tags:
- ovh
stage: build
script:
- ansible-playbook ansible/build.yml
run-test-job:
tags:
- ovh
stage: test
before_script:
- chmod 600 $ANSIBLE_PRIVATE_KEY_FILE
@@ -75,6 +82,8 @@ run-test-job:
reports:
junit: tests-report-netbox-*-plugin.xml
deliver-latest-job:
tags:
- ovh
stage: deliver
variables:
IMAGE_TAG: latest
@@ -84,6 +93,8 @@ deliver-latest-job:
- main
- master
deliver-tagged-job:
tags:
- ovh
stage: deliver
variables:
IMAGE_TAG: "$CI_COMMIT_TAG"
Loading