diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f6fce5a7..3b47610d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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