about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-14 11:25:01 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-14 11:25:01 +0300
commitdf68c6e2feef865217c4bf9ed39c6a6e59f4a8f5 (patch)
treeba8cea90ef0fae26225a781ec0eab93eea7b9780
parent5fcb4bc44e82745dcd97bdaab3bd49daf423e604 (diff)
downloadtt-rss-android-df68c6e2feef865217c4bf9ed39c6a6e59f4a8f5.tar.gz
tt-rss-android-df68c6e2feef865217c4bf9ed39c6a6e59f4a8f5.tar.xz
add codeberg job
-rw-r--r--.gitlab-ci.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb1b10a3..bb0974fa 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.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