[ci] Add job to update windows deps

This commit is contained in:
Fabian 2022-09-30 12:18:41 +02:00
parent 8b8afe0a07
commit 22a3d787ff

View File

@ -9,8 +9,16 @@ cache:
- .cache/pip - .cache/pip
- .venv/ - .venv/
workflow:
rules:
- if: $CI_COMMIT_AUTHOR == "Gitlab CI <ci@gitlab.com>"
when: never
- when: always
stages: stages:
- prepare - prepare
- deps
- build - build
- deploy - deploy
- release - release
@ -33,6 +41,38 @@ prepare:
reports: reports:
dotenv: build.env 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: package_linux:
stage: build stage: build
before_script: before_script: