-
Notifications
You must be signed in to change notification settings - Fork 0
159 lines (157 loc) · 6.16 KB
/
vue.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: Build Vue Images
on:
workflow_dispatch:
inputs:
is_test:
description: "Test run"
required: true
type: boolean
default: false
jobs:
Build:
if: ${{ !inputs.is_test }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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: ${{ secrets.DOCKER_TOKEN }}
- name: Login to Aliyuncs
uses: docker/login-action@v2
with:
registry: registry.cn-beijing.aliyuncs.com
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}
- name: Copy Tools
run: |
cp -r tools ./vue
shell: bash
- name: Build Vue doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
push: true
tags: |
docworld/vue:latest
docworld/vue:3
registry.cn-beijing.aliyuncs.com/docworld/vue:latest
registry.cn-beijing.aliyuncs.com/docworld/vue:3
- name: Build Vue zh doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
push: true
build-args: |
repoName=vuejs-translations/docs-zh-cn
tags: |
docworld/vue:zh-latest
docworld/vue:zh-3
registry.cn-beijing.aliyuncs.com/docworld/vue:zh-latest
registry.cn-beijing.aliyuncs.com/docworld/vue:zh-3
- name: Build Vue2 doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
file: ./vue/Dockerfile.vue2
push: true
tags: |
docworld/vue:2
registry.cn-beijing.aliyuncs.com/docworld/vue:2
- name: Build Vue2 zh doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
file: ./vue/Dockerfile.vue2
push: true
build-args: |
repoName=vuejs/v2.cn.vuejs.org
tags: |
docworld/vue:zh-2
registry.cn-beijing.aliyuncs.com/docworld/vue:zh-2
test-build:
if: ${{ inputs.is_test }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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: ${{ secrets.DOCKER_TOKEN }}
- name: Login to Aliyuncs
uses: docker/login-action@v2
with:
registry: registry.cn-beijing.aliyuncs.com
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}
- name: Copy Tools
run: |
cp -r tools ./vue
./tools/install.sh
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-revision vuejs/docs
shell: bash
- name: Build Vue doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
push: true
tags: |
registry.cn-beijing.aliyuncs.com/ikrong/docworld:vue3
build-args: |
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }}
- name: Copy Tools
run: |
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js repo-revision vuejs-translations/docs-zh-cn
- name: Build Vue zh doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
push: true
build-args: |
repoName=vuejs-translations/docs-zh-cn
DOCWORLD_SOURCE=${{ env.DOCWORLD_SOURCE }}
tags: |
registry.cn-beijing.aliyuncs.com/ikrong/docworld:vue3-zh
# - name: Build Vue2 doc
# uses: docker/[email protected]
# with:
# platforms: linux/amd64,linux/arm64
# context: ./vue/
# file: ./vue/Dockerfile.vue2
# push: true
# tags: registry.cn-beijing.aliyuncs.com/ikrong/docworld:vue2
# - name: Build Vue2 zh doc
# uses: docker/[email protected]
# with:
# platforms: linux/amd64,linux/arm64
# context: ./vue/
# file: ./vue/Dockerfile.vue2
# push: true
# build-args: |
# repoName=vuejs/v2.cn.vuejs.org
# tags: registry.cn-beijing.aliyuncs.com/ikrong/docworld:vue2-zh
UpdateDockerDescription:
if: ${{ !inputs.is_test }}
needs: [Build]
uses: ikrong/documents/.github/workflows/_updateDocker.yml@main
with:
repoName: vue
secrets: inherit