Commit 38a1f1e2 authored by Ivan Mazhukin's avatar Ivan Mazhukin

epm gitlab CI: add commit's test (eterbug #18412)

parent fafdfd40
stages: scheduled_ci:
- build
generate_ci:
stage: build stage: build
tags: tags:
- access - access
script: script:
- apt-get update && apt-get install -y git wget - apt-get update && apt-get install -y git wget
- bash gen-ci.sh > .gitlab-ci.yml - bash gen-ci.sh > .gitlab-ci.yml
...@@ -12,9 +9,31 @@ generate_ci: ...@@ -12,9 +9,31 @@ generate_ci:
- git config user.email "ci@etersoft.ru" - git config user.email "ci@etersoft.ru"
- git checkout -B ci-generated - git checkout -B ci-generated
- git add .gitlab-ci.yml - git add .gitlab-ci.yml
- git commit -m "update gitlab-ci.yml from epmp list" - git commit -m "update gitlab-ci.yml from epmp list" --allow-empty
- git remote set-url origin https://vanomj:$CI_PUSH_TOKEN@gitlab.eterfund.ru/vanomj/eepm.git - git remote set-url origin https://vanomj:$CI_PUSH_TOKEN@gitlab.eterfund.ru/vanomj/eepm.git
- git push -f origin ci-generated - git push -f origin ci-generated
only: only:
refs: - schedules
- schedules
\ No newline at end of file generate_ci:
stage: build
tags:
- access
script:
- |
if git diff --name-only origin/devel | grep -E '^(pack|play|repack)\.d/'; then
echo "Changes in play.d/ or pack.d/ found, regenerating..."
apt-get update && apt-get install -y git wget
bash gen-ci.sh > .gitlab-ci.yml
git config user.name "CI Bot"
git config user.email "ci@etersoft.ru"
git checkout -B ci-generated
git add .gitlab-ci.yml
git commit -m "update gitlab-ci.yml from epmp list" --allow-empty
git remote set-url origin https://vanomj:$CI_PUSH_TOKEN@gitlab.eterfund.ru/vanomj/eepm.git
git push -f origin ci-generated
else
echo "No relevant changes in play.d/, pack.d/, or repack.d/. Skipping."
fi
only:
- devel
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment