image: alpine:3.20@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 stages: - prepare - test - build - sync variables: CI_REGISTRY_IMAGE: $CI_REGISTRY/$CI_PROJECT_PATH PROJECT_NAME: $CI_PROJECT_NAME include: - local: 'backend/.gitlab-ci.yml' - local: 'finlog_app/.gitlab-ci.yml' sync_dev_branch: stage: sync image: node:22@sha256:f6b9c31ace05502dd98ef777aaa20464362435dcc5e312b0e213121dcf7d8b95 rules: - if: '$CI_COMMIT_BRANCH == "production"' before_script: - git config --global user.email "gitlab-ci@rhein-software.dev" - git config --global user.name "GitLab CI" script: - git remote set-url origin "https://oauth2:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" - git checkout dev - git pull origin dev - git merge --no-ff origin/production - git push origin dev