From 22a3d787ff221181946d30d0f021f2ca1774b519 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Fri, 30 Sep 2022 12:18:41 +0200 Subject: [PATCH] [ci] Add job to update windows deps --- .gitlab-ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index af0c73d..23ec96d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,8 +9,16 @@ cache: - .cache/pip - .venv/ +workflow: + rules: + - if: $CI_COMMIT_AUTHOR == "Gitlab CI " + when: never + - when: always + + stages: - prepare + - deps - build - deploy - release @@ -33,6 +41,38 @@ prepare: reports: dotenv: build.env +update_windows_deps: + stage: deps + tags: + - shared-windows + - windows + - windows-1809 + rules: + - if: $CI_COMMIT_TAG + when: never + - if: $CI_COMMIT_BRANCH == "main" + when: always + #- changes: + # - Pipfile + # - Pipfile.lock + # when: always + before_script: + - Import-Module "${ChocolateyInstall}\helpers\chocolateyProfile.psm1" + - choco install python --version=$PYTHON_VERSION -y --no-progress + - choco install openssh -y --no-progress + - refreshenv + - python --version + - pip install pipenv + - ssh-agent -s + - cat "${WINDOWS_SSH_PRIVATE_KEY}" | ssh-add - + - git config --global user.name "Gitlab CI" + - git config --global user.email "ci@gitlab.com" + script: + - pipenv lock --dev --keep-outdated + - git commit -m "Updated windows deps from CI" Pipfile.lock + - git push + + package_linux: stage: build before_script: