-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fa43f7d
Showing
60 changed files
with
2,750 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root=true | ||
|
||
[*] | ||
end_of_line=lf | ||
insert_final_newline=true | ||
|
||
[*.{js,yml,json,yaml}] | ||
charset=utf-8 | ||
indent_style=space | ||
indent_size=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Setup docker Env" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to docker.io | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: docker.io | ||
username: docworld | ||
password: ${{ env.DOCKER_TOKEN }} | ||
- name: Login to Aliyuncs | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: registry.cn-beijing.aliyuncs.com | ||
username: ${{ env.ALIYUN_USERNAME }} | ||
password: ${{ env.ALIYUN_PASSWORD }} | ||
- name: Copy Tools | ||
shell: bash | ||
run: | | ||
cp -r tools ./${{ env.repo }} | ||
./tools/install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Update Docker Description | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
repoName: | ||
required: true | ||
type: string | ||
secrets: | ||
DOCKER_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
updateDocker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update docker description | ||
run: | | ||
./tools/install.sh | ||
NODE_PATH=$(npm root --quiet -g) \ | ||
node ./tools/prepare.js \ | ||
update-readme docworld ${{secrets.DOCKER_TOKEN}} ${{inputs.repoName}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build Angular Images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
is_test: | ||
description: "Test run" | ||
required: true | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
env: | ||
repo: angular | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | ||
ALIYUN_USERNAME: ${{ secrets.ALIYUN_USERNAME }} | ||
ALIYUN_PASSWORD: ${{ secrets.ALIYUN_PASSWORD }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/login | ||
- name: Run Tools | ||
run: | | ||
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-revision angular/angular | ||
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-release-tag angular/angular | ||
- if: ${{ !inputs.is_test }} | ||
name: Build angular doc | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: ./angular/ | ||
push: true | ||
build-args: | | ||
tagName=${{env.tag_name}} | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
tags: | | ||
docworld/angular:latest | ||
docworld/angular:${{ env.tag_name }} | ||
registry.cn-beijing.aliyuncs.com/docworld/angular:latest | ||
registry.cn-beijing.aliyuncs.com/docworld/angular:${{ env.tag_name }} | ||
- if: ${{ inputs.is_test }} | ||
name: Test Build angular doc | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: ./angular/ | ||
push: true | ||
build-args: | | ||
tagName=${{env.tag_name}} | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
tags: | | ||
registry.cn-beijing.aliyuncs.com/ikrong/docworld:angular | ||
UpdateDockerDescription: | ||
if: ${{ !inputs.is_test }} | ||
needs: [Build] | ||
uses: ikrong/documents/.github/workflows/_updateDocker.yml@main | ||
with: | ||
repoName: angular | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Build Docker Images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
is_test: | ||
description: "Test run" | ||
required: true | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
env: | ||
repo: docker | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | ||
ALIYUN_USERNAME: ${{ secrets.ALIYUN_USERNAME }} | ||
ALIYUN_PASSWORD: ${{ secrets.ALIYUN_PASSWORD }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/login | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: docker/docs | ||
path: docker-docs/ | ||
- name: Run Tools | ||
run: | | ||
NODE_PATH=$(npm root --quiet -g) node ./docker/prepare.js docker-docs/ | ||
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-revision docker/docs | ||
- name: Build docker doc | ||
run: | | ||
docker buildx build --load -t docs:latest ./docker-docs/ | ||
docker container create --name docs docs:latest /bin/sh | ||
docker container cp docs:/ ./docker/html/ | ||
docker container rm -f docs | ||
cd ./docker/html | ||
rm -rf ./dev ./etc ./proc ./sys .dockerenv | ||
- if: ${{ !inputs.is_test }} | ||
name: Build docker doc | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: ./docker/ | ||
push: true | ||
build-args: | | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
tags: | | ||
docworld/docker:latest | ||
docworld/docker:${{ env.tag_name }} | ||
registry.cn-beijing.aliyuncs.com/docworld/docker:latest | ||
registry.cn-beijing.aliyuncs.com/docworld/docker:${{ env.tag_name }} | ||
- if: ${{ inputs.is_test }} | ||
name: Test Build docker doc | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: ./docker/ | ||
push: true | ||
build-args: | | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
tags: | | ||
registry.cn-beijing.aliyuncs.com/ikrong/docworld:docker | ||
UpdateDockerDescription: | ||
if: ${{ !inputs.is_test }} | ||
needs: [Build] | ||
uses: ikrong/documents/.github/workflows/_updateDocker.yml@main | ||
with: | ||
repoName: docker | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build Echarts Images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
is_test: | ||
description: "Test run" | ||
required: true | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
env: | ||
repo: echarts | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | ||
ALIYUN_USERNAME: ${{ secrets.ALIYUN_USERNAME }} | ||
ALIYUN_PASSWORD: ${{ secrets.ALIYUN_PASSWORD }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/login | ||
- name: Run Tools | ||
run: | | ||
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-revision apache/echarts-website | ||
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-release-tag apache/echarts | ||
- if: ${{ !inputs.is_test }} | ||
name: Build echarts doc | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
build-args: | | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
context: ./echarts/ | ||
push: true | ||
tags: | | ||
docworld/echarts:latest | ||
docworld/echarts:${{ env.tag_name }} | ||
registry.cn-beijing.aliyuncs.com/docworld/echarts:latest | ||
registry.cn-beijing.aliyuncs.com/docworld/echarts:${{ env.tag_name }} | ||
- if: ${{ inputs.is_test }} | ||
name: Test Build echarts doc | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
build-args: | | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
context: ./echarts/ | ||
push: true | ||
tags: | | ||
registry.cn-beijing.aliyuncs.com/ikrong/docworld:echarts | ||
UpdateDockerDescription: | ||
if: ${{ !inputs.is_test }} | ||
needs: [Build] | ||
uses: ikrong/documents/.github/workflows/_updateDocker.yml@main | ||
with: | ||
repoName: echarts | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Build Electron Images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
is_test: | ||
description: "Test run" | ||
required: true | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
env: | ||
repo: electron | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | ||
ALIYUN_USERNAME: ${{ secrets.ALIYUN_USERNAME }} | ||
ALIYUN_PASSWORD: ${{ secrets.ALIYUN_PASSWORD }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/login | ||
- name: Run Tools | ||
run: | | ||
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-revision electron/website | ||
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-release-tag electron/electron | ||
- if: ${{ !inputs.is_test }} | ||
name: Build electron doc | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: ./electron/ | ||
push: true | ||
build-args: | | ||
CROWDIN_PERSONAL_TOKEN=${{secrets.CROWDIN_PERSONAL_TOKEN}} | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
tags: | | ||
docworld/electron:latest | ||
docworld/electron:${{ env.tag_name }} | ||
registry.cn-beijing.aliyuncs.com/docworld/electron:latest | ||
registry.cn-beijing.aliyuncs.com/docworld/electron:${{ env.tag_name }} | ||
- if: ${{ inputs.is_test }} | ||
name: Build electron doc | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: ./electron/ | ||
push: true | ||
build-args: | | ||
CROWDIN_PERSONAL_TOKEN=${{secrets.CROWDIN_PERSONAL_TOKEN}} | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
tags: registry.cn-beijing.aliyuncs.com/ikrong/docworld:electron | ||
UpdateDockerDescription: | ||
if: ${{ !inputs.is_test }} | ||
needs: [Build] | ||
uses: ikrong/documents/.github/workflows/_updateDocker.yml@main | ||
with: | ||
repoName: electron | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build ElementPlus Images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
is_test: | ||
description: "Test run" | ||
required: true | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
env: | ||
repo: element-plus | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | ||
ALIYUN_USERNAME: ${{ secrets.ALIYUN_USERNAME }} | ||
ALIYUN_PASSWORD: ${{ secrets.ALIYUN_PASSWORD }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/login | ||
- name: Run Tools | ||
run: | | ||
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-revision electron/website | ||
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-release-tag element-plus/element-plus | ||
- name: Build element-plus doc | ||
if: ${{ !inputs.is_test }} | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: ./element-plus/ | ||
push: true | ||
build-args: | | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
tags: | | ||
docworld/element-plus:latest | ||
docworld/element-plus:${{ env.tag_name }} | ||
registry.cn-beijing.aliyuncs.com/docworld/element-plus:latest | ||
registry.cn-beijing.aliyuncs.com/docworld/element-plus:${{ env.tag_name }} | ||
- name: Test Build element-plus doc | ||
if: ${{ inputs.is_test }} | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: ./element-plus/ | ||
push: true | ||
build-args: | | ||
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }} | ||
tags: | | ||
registry.cn-beijing.aliyuncs.com/ikrong/docworld:element-plus | ||
UpdateDockerDescription: | ||
if: ${{ !inputs.is_test }} | ||
needs: [Build] | ||
uses: ikrong/documents/.github/workflows/_updateDocker.yml@main | ||
with: | ||
repoName: element-plus | ||
secrets: inherit |
Oops, something went wrong.