Update .gitlab-ci.yml file

This commit is contained in:
Christoph Schabert 2024-09-23 11:19:06 +02:00
parent 94cbb2cf3d
commit aa2012bbda

View File

@ -21,9 +21,9 @@ localazy update:
paths:
- .yarn-cache/
script:
- git config user.email "${CI_EMAIL}"
- git config user.name "${CI_USERNAME}"
- git remote add gitlab_origin https://${CI_USERNAME}:${CI_ACCESS_TOKEN}@gitlab.knecon.com/redactmanager/red-ui.git
# - git config user.email "${CI_EMAIL}"
# - git config user.name "${CI_USERNAME}"
# - git remote add gitlab_origin https://${CI_USERNAME}:${CI_ACCESS_TOKEN}@gitlab.knecon.com/redactmanager/red-ui.git
- cd tools/localazy
- yarn install --cache-folder .yarn-cache
- yarn start
@ -35,7 +35,8 @@ localazy update:
then
git status
git commit -m "push back localazy update"
git push gitlab_origin HEAD:${CI_COMMIT_REF_NAME}
# git push gitlab_origin HEAD:${CI_COMMIT_REF_NAME}
git push https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.knecon.com/redactmanager/red-ui.git
fi
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"