forked from netbootxyz/netboot.xyz
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.21 KB
/
build-test.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
name: Build cips@nyist test ver.
on:
push:
branches: [ "nyist-pxe" ]
pull_request:
branches: [ "nyist-pxe" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Send start notification to WeCom
uses: chf007/action-wechat-work@master
env:
WECHAT_WORK_BOT_WEBHOOK: ${{ secrets.WECHAT_WEBHOOK_URL }}
with:
msgtype: text
content: "NYIST/netboot 测试构建已开始🚀"
- name: Build the Docker image
run: docker build -t localbuild -f Dockerfile .
- name: Build site
run: docker run --rm -v $(pwd):/buildout localbuild
- name: Copy pxe background image
run: cp pxe_bg.png buildout/
- name: Create buildout archive
run: |
cd buildout
zip -r buildout.zip .
- name: Upload buildout artifact
uses: actions/upload-artifact@v2
with:
name: buildout-artifact
path: buildout/buildout.zip
- name: Send end notification to WeCom
uses: chf007/action-wechat-work@master
env:
WECHAT_WORK_BOT_WEBHOOK: ${{ secrets.WECHAT_WEBHOOK_URL }}
with:
msgtype: text
content: "NYIST/netboot 测试构建成功✨"