forked from JointCloud/JCC-RIP
fix
This commit is contained in:
parent
324a231e4a
commit
0155e1c9c4
|
@ -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 }}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue