-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 2.37 KB
/
electron.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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