This commit is contained in:
jagger 2024-09-11 11:12:16 +08:00
parent 324a231e4a
commit 0155e1c9c4
2 changed files with 26 additions and 1 deletions

25
.github/workflows/sync.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Sync Mirror Repository
on:
schedule:
- cron: '0 * * * *' # 每小时同步一次
workflow_dispatch: # 允许手动触发
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout target repository
uses: actions/checkout@v2
with:
fetch-depth: 1 # 获取完整的提交历史
- name: Mirror source repository
uses: wearerequired/git-mirror-action@v1
with:
source-repo: "https://gitlink.org.cn/JointCloud/JCC-RIP.git" # 源仓库的URL
destination-repo: "git@github.com:${{ github.repository }}.git" # 目标仓库的URL
ssh: true
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

View File

@ -4,7 +4,7 @@ WORKDIR /app
COPY . .
COPY deploy/nginx/ /app/
RUN npm install --registry=https://registry.npmmirror.com &&\
RUN npm install &&\
npm run build:prod
FROM nginx:stable-alpine