blob: 95222665a909424fcfe52150f4871f6207204235 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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
|