Skip to content

Commit

Permalink
feat: add ansible-lint
Browse files Browse the repository at this point in the history
Update pipeline with several stages. Note that this requires access to the
pipeline definition repository.
PeterMosmans committed Apr 11, 2022
1 parent 3df5e82 commit 7730e1b
Showing 2 changed files with 17 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
---
include:
- project: tooling/pipeline
file: docker.yml
ref: main
- project: tooling/pipeline
file: docker_push.yml
ref: main

variables:
IMAGE_TAG: ${CI_PROJECT_NAME}:${CI_COMMIT_SHORT_SHA}
DOCKLE_PARMS: "--accept-file settings.py"

stages:
- pre-build lint
- build
- post-build lint
- test

build:
stage: build
script:
- docker build -t ${IMAGE_TAG} .
- push

test:
stage: test
dependencies: []
variables:
GIT_STRATEGY: none
image: ${IMAGE_TAG}
script:
- anchore-cli --version
- ansible-lint --version
- curl --version
- cyclonedx-py --help
- detect-secrets --version
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
anchorecli
ansible-lint
cyclonedx-bom
detect-secrets
trufflehog

0 comments on commit 7730e1b

Please sign in to comment.