Running yaml formatter on the gitlab-ci file
This commit is contained in:
parent
1171d62ffb
commit
136508764c
@ -14,24 +14,21 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
lint_helm:
|
lint_helm:
|
||||||
image: alpine/helm
|
image: alpine/helm
|
||||||
stage: lint_helm
|
stage: lint_helm
|
||||||
script:
|
script:
|
||||||
- echo "Linting Helm chart"
|
- helm lint ./helm
|
||||||
- helm lint ./helm
|
rules:
|
||||||
rules:
|
- changes:
|
||||||
- changes:
|
|
||||||
- helm/*
|
- helm/*
|
||||||
|
|
||||||
|
|
||||||
lint_python:
|
lint_python:
|
||||||
image: python:alpine
|
image: python:alpine
|
||||||
stage: lint_python
|
stage: lint_python
|
||||||
script:
|
script:
|
||||||
- echo "Linting Python code"
|
- pip install -q black && black --fast --check .
|
||||||
- pip install --upgrade -q pip && pip install -q black && black --fast --check .
|
rules:
|
||||||
rules:
|
- changes:
|
||||||
- changes:
|
|
||||||
- app/*
|
- app/*
|
||||||
|
|
||||||
build_and_push_container:
|
build_and_push_container:
|
||||||
@ -45,5 +42,5 @@ build_and_push_container:
|
|||||||
- docker push ldooks/dragon-bot:$CI_PIPELINE_ID
|
- docker push ldooks/dragon-bot:$CI_PIPELINE_ID
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
- app/*
|
- app/*
|
||||||
- Dockerfile
|
- Dockerfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user