diff options
| -rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb1b10a3..8f89e915 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,3 +14,16 @@ weblate-integration-auto-mr: 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}" + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CODEBERG_PUSH_TOKEN != null + - if: $CI_COMMIT_BRANCH == "dev" && $CODEBERG_PUSH_TOKEN != null |
