[ci] Add job to update windows deps #16

This commit is contained in:
Fabian 2022-09-30 20:18:42 +02:00
parent f5527b315e
commit 5f6a67c2b2

View File

@ -42,10 +42,10 @@ update_windows_deps:
when: never
- if: $CI_COMMIT_BRANCH == "main"
when: always
#- changes:
# - Pipfile
# - Pipfile.lock
# when: always
- changes:
- Pipfile
- Pipfile.lock
when: always
before_script:
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
- choco install python --version=$PYTHON_VERSION -y --no-progress
@ -60,20 +60,20 @@ update_windows_deps:
# commit from linux, because setting up SSH in Windows is a fucking nightmare
commit_windows_deps:
needs:
- update_windows_deps
#needs:
# - update_windows_deps
image: alpine
before_script:
- apk add --update git openssh-client
- eval $(ssh-agent -s)
- echo "$WINDOWS_SSH_PRIVATE_KEY" | ssh-add -
- echo "$SSH_PRIVATE_KEY_REPO_WRITE" | ssh-add -
- git config --global user.name "Gitlab CI"
- git config --global user.email "ci@gitlab.com"
- git remote rm origin && git remote add origin "git@gitlab.com:${CI_PROJECT_PATH}.git"
script:
- dos2unix Pipfile.lock
- git commit -m "Updated windows deps from CI" Pipfile.lock || echo "No changes"
- git push $HEAD:$CI_COMMIT_REF_NAME
- git commit -m "Updated windows deps from CI" Pipfile.lock
- git push HEAD:$CI_COMMIT_REF_NAME
package_linux:
needs: