diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 90690a1..2628f3d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - quality assurance +- deploy .init_venv: &init_venv - python -m venv .venv @@ -15,7 +16,7 @@ backend-pylint: stage: quality assurance image: python:3.11.4-buster before_script: - - mkdir -p public/lint + - mkdir -p public - cd backend - *init_venv - *install_requirements @@ -23,9 +24,22 @@ backend-pylint: - pylint --version script: - pylint src/* --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter > ../codeclimate.json + - pylint src/* --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter > ../public/index.html artifacts: paths: - public reports: codequality: codeclimate.json when: always + +pages: + stage: deploy + image: alpine:latest + script: + - echo "Deployed!" + artifacts: + paths: + - public + only: + refs: + - main