include: - project: 'ci/ci-templates' ref: master file: .ci-build-apk-fdroid.yml - project: 'ci/ci-templates' ref: master file: .ci-mr-review.yml # https://about.gitlab.com/blog/how-to-automatically-create-a-new-mr-on-gitlab-with-gitlab-ci/ weblate-integration-auto-mr: image: ${INFRA_IMAGE} stage: deploy rules: - if: $CI_COMMIT_BRANCH == "weblate-integration" && $AUTO_MR_TOKEN != null script: - HOST=${CI_PROJECT_URL} CI_PROJECT_ID=${CI_PROJECT_ID} CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} GITLAB_USER_ID=${GITLAB_USER_ID} PRIVATE_TOKEN=${AUTO_MR_TOKEN} ./utils/autoMergeRequest.sh deploy-codeberg: image: ${INFRA_IMAGE} stage: deploy script: - git config --global safe.directory "*" - git config --global http.proxy "${INFRA_HTTPS_PROXY}" - git config --global https.proxy "${INFRA_HTTPS_PROXY}" - git remote add codeberg "https://x-access-token:${CODEBERG_PUSH_TOKEN}@codeberg.org/cthulhoo/tt-rss-android.git" - git push codeberg "HEAD:${CI_COMMIT_BRANCH}" --tags rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CODEBERG_PUSH_TOKEN != null - if: $CI_COMMIT_BRANCH == "dev" && $CODEBERG_PUSH_TOKEN != null