-
Notifications
You must be signed in to change notification settings - Fork 302
56 lines (48 loc) · 1.43 KB
/
build.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
name: KubeSphere Website
on:
push:
branches:
- master
schedule: # run 8:00 AM Beijing Time everyday
- cron: '0 0 * * *'
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.71.1'
extended: true
- name: Sync to gitee
uses: Yikun/hub-mirror-action@master
with:
src: github/kubesphere
dst: gitee/kubesphere
white_list: 'website'
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN}}
account_type: org
- name: Build English Website
run: hugo --environment upstream --minify
- name: Build and Push image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: kubesphere/website
tags: v1.0-en
- name: Build Chinese Website
run: hugo --environment upstream-zh --minify
- name: Build and Push image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: kubesphere/website
tags: v1.0-zh