diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c50b3f..e484686 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,9 @@ image: python:3.10 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIPENV_VENV_IN_PROJECT: 1 + UPDATE_WINDOWS_DEPS: + description: "Set to \"1\" to update windows deps" + value: "0" cache: paths: @@ -42,11 +45,15 @@ update_windows_deps: rules: - if: $CI_COMMIT_TAG when: never + - if: $UPDATE_WINDOWS_DEPS == "1" + when: always - if: $CI_COMMIT_BRANCH == "main" changes: - Pipfile - Pipfile.lock when: always + needs: + - prepare before_script: - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - choco install python --version=$PYTHON_VERSION -y --no-progress @@ -64,11 +71,11 @@ commit_windows_deps: rules: - if: $CI_COMMIT_TAG when: never + - if: $UPDATE_WINDOWS_DEPS == "1" - if: $CI_COMMIT_BRANCH == "main" changes: - Pipfile - Pipfile.lock - when: always needs: - update_windows_deps image: alpine