[ci] Add job to update windows deps #16
This commit is contained in:
parent
f5527b315e
commit
5f6a67c2b2
@ -42,10 +42,10 @@ update_windows_deps:
|
|||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_BRANCH == "main"
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
when: always
|
when: always
|
||||||
#- changes:
|
- changes:
|
||||||
# - Pipfile
|
- Pipfile
|
||||||
# - Pipfile.lock
|
- Pipfile.lock
|
||||||
# when: always
|
when: always
|
||||||
before_script:
|
before_script:
|
||||||
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||||
- choco install python --version=$PYTHON_VERSION -y --no-progress
|
- 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 from linux, because setting up SSH in Windows is a fucking nightmare
|
||||||
commit_windows_deps:
|
commit_windows_deps:
|
||||||
needs:
|
#needs:
|
||||||
- update_windows_deps
|
# - update_windows_deps
|
||||||
image: alpine
|
image: alpine
|
||||||
before_script:
|
before_script:
|
||||||
- apk add --update git openssh-client
|
- apk add --update git openssh-client
|
||||||
- eval $(ssh-agent -s)
|
- 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.name "Gitlab CI"
|
||||||
- git config --global user.email "ci@gitlab.com"
|
- git config --global user.email "ci@gitlab.com"
|
||||||
- git remote rm origin && git remote add origin "git@gitlab.com:${CI_PROJECT_PATH}.git"
|
- git remote rm origin && git remote add origin "git@gitlab.com:${CI_PROJECT_PATH}.git"
|
||||||
script:
|
script:
|
||||||
- dos2unix Pipfile.lock
|
- dos2unix Pipfile.lock
|
||||||
- git commit -m "Updated windows deps from CI" Pipfile.lock || echo "No changes"
|
- git commit -m "Updated windows deps from CI" Pipfile.lock
|
||||||
- git push $HEAD:$CI_COMMIT_REF_NAME
|
- git push HEAD:$CI_COMMIT_REF_NAME
|
||||||
|
|
||||||
package_linux:
|
package_linux:
|
||||||
needs:
|
needs:
|
||||||
|
Loading…
Reference in New Issue
Block a user