...
 
Commits (2)
    https://gitcode.net/xuxiaowei-com-cn/spring-boot-starter-idempotent/-/commit/f86231b2ddb785db5879fe305532fa4ef4a4d0fb :construction_worker: 删除极狐,使用 framagit 2023-12-11T16:07:27+08:00 徐晓伟 xuxiaowei@xuxiaowei.com.cn https://gitcode.net/xuxiaowei-com-cn/spring-boot-starter-idempotent/-/commit/118156748a8111281b4c22708e0a1bfcb1794ad3 :memo: 删除极狐,使用 framagit 2023-12-11T16:14:53+08:00 徐晓伟 xuxiaowei@xuxiaowei.com.cn
......@@ -106,30 +106,30 @@ jobs:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 将 next 分支代码同步到 极狐GitLab
- name: Sync JihuLab
# 将 main 分支代码同步到 FramaGit
- name: Sync FramaGit
run: |
git config --global user.email "xuxiaowei@xuxiaowei.com.cn"
git config --global user.name "徐晓伟"
# 设置 SSH 秘钥
mkdir -p ~/.ssh
echo "${{ secrets.JIHULAB_ID_RSA }}" >> ~/.ssh/id_rsa
echo "${{ secrets.FRAMAGIT_ID_RSA }}" >> ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa
# 信任域名
ssh-keyscan -H jihulab.com >> ~/.ssh/known_hosts
# 切换 next 分支
git checkout next
# 拉取 next 分支
git pull origin next
# 查看远端 极狐GitLab
echo git@jihulab.com:$GITHUB_REPOSITORY.git
# 添加远端 极狐GitLab
git remote add jihulab git@jihulab.com:$GITHUB_REPOSITORY.git
# 拉取 next 分支
git pull --progress -v --no-rebase jihulab next
# 推送 next 分支
git push --progress jihulab next:next
ssh-keyscan -H framagit.org >> ~/.ssh/known_hosts
# 切换 main 分支
git checkout main
# 拉取 main 分支
git pull origin main
# 查看远端 FramaGit
echo git@framagit.org:$GITHUB_REPOSITORY.git
# 添加远端 FramaGit
git remote add framagit git@framagit.org:$GITHUB_REPOSITORY.git
# 拉取 main 分支
git pull --progress -v --no-rebase framagit main
# 推送 main 分支
git push --progress framagit main:main
sync:
name: Sync
......@@ -151,25 +151,25 @@ jobs:
# 获取所有的代码历史记录,包括分支和标签
fetch-depth: 0
# 将代码同步到 极狐GitLab
- name: Sync JihuLab
# 将代码同步到 FramaGit
- name: Sync FramaGit
run: |
git config --global user.email "xuxiaowei@xuxiaowei.com.cn"
git config --global user.name "徐晓伟"
# 设置 SSH 秘钥
mkdir -p ~/.ssh
echo "${{ secrets.JIHULAB_ID_RSA }}" >> ~/.ssh/id_rsa
echo "${{ secrets.FRAMAGIT_ID_RSA }}" >> ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa
# 信任域名
ssh-keyscan -H jihulab.com >> ~/.ssh/known_hosts
ssh-keyscan -H framagit.org >> ~/.ssh/known_hosts
# 查看当前分支
echo 当前分支:$GITHUB_REF_NAME
# 查看远端 极狐GitLab
echo git@jihulab.com:$GITHUB_REPOSITORY.git
# 添加远端 极狐GitLab
git remote add jihulab git@jihulab.com:$GITHUB_REPOSITORY.git
# 查看远端 FramaGit
echo git@framagit.org:$GITHUB_REPOSITORY.git
# 添加远端 FramaGit
git remote add framagit git@framagit.org:$GITHUB_REPOSITORY.git
# 拉取
git pull --progress -v --no-rebase jihulab $GITHUB_REF_NAME
git pull --progress -v --no-rebase framagit $GITHUB_REF_NAME
# 推送当前分支
git push --progress jihulab $GITHUB_REF_NAME:$GITHUB_REF_NAME
git push --progress framagit $GITHUB_REF_NAME:$GITHUB_REF_NAME
......@@ -64,4 +64,6 @@ next:
- "!README.md"
include:
- remote: https://jihulab.com/xuxiaowei-com-cn/spring-boot-starter/-/raw/next/sync.yml
- project: xuxiaowei-com-cn/spring-boot-starter
file: sync.yml
ref: next
......@@ -130,14 +130,6 @@
## 其他 [Spring Boot Starter 项目](https://gitee.com/xuxiaowei-com-cn/spring-boot-starter)
## 流水线
- 当前流水线:[极狐GitLab](https://jihulab.com/xuxiaowei-com-cn/spring-boot-starter-idempotent/-/pipelines)
- 国内版 GitLab,开源项目:不限制流水线使用时长
- 历史流水线:
- [GitLab](https://gitlab.com/xuxiaowei-com-cn/spring-boot-starter-idempotent/-/pipelines)
- [GitCode](https://gitcode.net/xuxiaowei-com-cn/spring-boot-starter-idempotent/-/pipelines)
## 发布
- [快照版](https://s01.oss.sonatype.org/content/repositories/snapshots/cn/com/xuxiaowei/boot/next/spring-boot-starter-idempotent)
......@@ -242,7 +234,7 @@ git remote add gitee https://gitee.com/xuxiaowei-com-cn/spring-boot-starter-idem
git remote add gitlab https://gitlab.com/xuxiaowei-com-cn/spring-boot-starter-idempotent.git
git remote add jihulab https://jihulab.com/xuxiaowei-com-cn/spring-boot-starter-idempotent.git
git remote add framagit https://framagit.org/xuxiaowei-com-cn/spring-boot-starter-idempotent.git
git remote add github https://github.com/xuxiaowei-com-cn/spring-boot-starter-idempotent.git
......