mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2026-02-05 07:03:13 +08:00
.
This commit is contained in:
41
.github/workflows/Built_JS_Tool_To_Docker.yml
vendored
Executable file
41
.github/workflows/Built_JS_Tool_To_Docker.yml
vendored
Executable file
@@ -0,0 +1,41 @@
|
||||
name: Built_JS_Tool_To_Docker
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '30 */4 * * *'
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DockerHub_ID }}
|
||||
password: ${{ secrets.DockerHub_PASSWORD }}
|
||||
|
||||
- name: Build & Push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./docker/docker/
|
||||
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm/v6,linux/ppc64le
|
||||
push: true
|
||||
tags: lantianxiang1/js_tool:A1
|
||||
- name: Delete Workflow Runs
|
||||
uses: Mattraks/delete-workflow-runs@main
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 0
|
||||
|
||||
29
.github/workflows/Sync_JD_Shell_To_Gitee.yml.bak
vendored
Executable file
29
.github/workflows/Sync_JD_Shell_To_Gitee.yml.bak
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
name: Sync_JD_Shell_To_Gitee
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '1,6,11,16,21,26,31,36,41,46,51,55 * * * *'
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 3
|
||||
steps:
|
||||
- name: Sync to Gitee
|
||||
uses: wearerequired/git-mirror-action@master
|
||||
env:
|
||||
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
|
||||
SSH_PRIVATE_KEY: ${{ secrets.RSA_PRIVATE_KEY }}
|
||||
with:
|
||||
# 注意替换为你的 GitHub 源仓库地址
|
||||
source-repo: git@github.com:lan-tianxiang/js_tool.git
|
||||
# 注意替换为你的 Gitee 目标仓库地址
|
||||
destination-repo: git@gitee.com:highdimen/js_tool.git
|
||||
|
||||
- name: Delete Workflow Runs
|
||||
uses: Mattraks/delete-workflow-runs@main
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 0
|
||||
|
||||
46
.github/workflows/Sync_JD_Shell_v3_From_Gitee.yml.bak
vendored
Executable file
46
.github/workflows/Sync_JD_Shell_v3_From_Gitee.yml.bak
vendored
Executable file
@@ -0,0 +1,46 @@
|
||||
name: Sync_JD_Shell_v3_From_Gitee
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- v3
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '*/8 * * * *'
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.repository == 'lan-tianxiang/js_tool'
|
||||
timeout-minutes: 3
|
||||
steps:
|
||||
- name: Init Build Dependencies
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: |
|
||||
sudo -E rm -rf /etc/apt/sources.list.d
|
||||
sudo -E apt-get update -y
|
||||
sudo -E apt-get install -y build-essential git git-core curl wget
|
||||
sudo -E apt-get clean -y
|
||||
git config --global user.name 'lan-tianxiang' && git config --global user.email 'highdimen@github.com'
|
||||
- name: Prepare Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "${{ secrets.RSA_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan gitee.com > ~/.ssh/known_hosts
|
||||
- name: Clone Master
|
||||
run: |
|
||||
git clone -b v3 git@gitee.com:highdimen/js_tool.git v3
|
||||
- name: Push Master
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
directory: v3
|
||||
github_token: ${{ secrets.HUB_TOKEN }}
|
||||
branch: v3
|
||||
force : true
|
||||
- name: Delete Workflow Runs
|
||||
uses: Mattraks/delete-workflow-runs@main
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 0
|
||||
52
.github/workflows/Sync_JD_Shell_v3_To_Gitee.yml.bak
vendored
Executable file
52
.github/workflows/Sync_JD_Shell_v3_To_Gitee.yml.bak
vendored
Executable file
@@ -0,0 +1,52 @@
|
||||
name: Sync_JD_Shell_v3_To_Gitee
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- v3
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.repository == 'lan-tianxiang/js_tool'
|
||||
timeout-minutes: 3
|
||||
steps:
|
||||
- name: Init Build Dependencies
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: |
|
||||
sudo -E rm -rf /etc/apt/sources.list.d
|
||||
sudo -E apt-get update -y
|
||||
sudo -E apt-get install -y build-essential git git-core curl wget
|
||||
sudo -E apt-get clean -y
|
||||
git config --global user.name 'lan-tianxiang' && git config --global user.email 'highdimen@gitee.com'
|
||||
- name: Prepare Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "${{ secrets.RSA_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan github.com > ~/.ssh/known_hosts
|
||||
- name: Clone Master
|
||||
run: |
|
||||
git clone -b v3 git@github.com:lan-tianxiang/js_tool.git v3
|
||||
- name: Prepare Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "${{ secrets.RSA_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan gitee.com > ~/.ssh/known_hosts
|
||||
- name: push Master
|
||||
run: |
|
||||
cd v3
|
||||
perl -i -pe "s|url \= git\@github.com:lan-tianxiang\/jd_shell.git|url \= git\@gitee.com:highdimen\/jd_shell.git|g" .git/config
|
||||
cat .git/config
|
||||
echo "## UpdateTime: "$(date) >> jd.sh
|
||||
git add .
|
||||
git commit -m "update"
|
||||
git push -f
|
||||
- name: Delete Workflow Runs
|
||||
uses: Mattraks/delete-workflow-runs@main
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 0
|
||||
45
.github/workflows/Sync_Js_Tool_A1_From_Gitee.yml
vendored
Executable file
45
.github/workflows/Sync_Js_Tool_A1_From_Gitee.yml
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
name: Sync_Js_Tool_From_Gitee
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- A1
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '*/10 * * * *'
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-18.04
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Init Build Dependencies
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: |
|
||||
sudo -E rm -rf /etc/apt/sources.list.d
|
||||
sudo -E apt-get update -y
|
||||
sudo -E apt-get install -y build-essential git git-core curl wget
|
||||
sudo -E apt-get clean -y
|
||||
git config --global user.name 'lan-tianxiang' && git config --global user.email 'highdimen@github.com'
|
||||
- name: Prepare Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "${{ secrets.RSA_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan gitee.com > ~/.ssh/known_hosts
|
||||
- name: Clone A1 From js_tool
|
||||
run: |
|
||||
git clone -b A1 git@gitee.com:highdimen/js_tool.git A1
|
||||
- name: Push A1
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
directory: A1
|
||||
github_token: ${{ secrets.HUB_TOKEN }}
|
||||
branch: A1
|
||||
force : true
|
||||
- name: Delete Workflow Runs
|
||||
uses: Mattraks/delete-workflow-runs@main
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 0
|
||||
Reference in New Issue
Block a user