Running yaml formatter on the gitlab-ci file

This commit is contained in:
Luke Robles 2022-02-02 20:00:24 -08:00
parent ae12f783e4
commit cdb0028f6a

View File

@ -14,24 +14,21 @@ stages:
- deploy
lint_helm:
image: alpine/helm
stage: lint_helm
script:
- echo "Linting Helm chart"
- helm lint ./helm
rules:
- changes:
image: alpine/helm
stage: lint_helm
script:
- helm lint ./helm
rules:
- changes:
- helm/*
lint_python:
image: python:alpine
stage: lint_python
script:
- echo "Linting Python code"
- pip install --upgrade -q pip && pip install -q black && black --fast --check .
rules:
- changes:
image: python:alpine
stage: lint_python
script:
- pip install -q black && black --fast --check .
rules:
- changes:
- app/*
build_and_push_container:
@ -45,5 +42,5 @@ build_and_push_container:
- docker push ldooks/dragon-bot:$CI_PIPELINE_ID
rules:
- changes:
- app/*
- Dockerfile
- app/*
- Dockerfile