Update build-test.yml #5
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
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: distributhor/workflow-webhook@v1 | |
with: | |
webhook_url: ${{ secrets.WECHAT_WEBHOOK_URL }} | |
data: '{"msgtype":"text","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: distributhor/workflow-webhook@v1 | |
with: | |
webhook_url: ${{ secrets.WECHAT_WEBHOOK_URL }} | |
data: '{"msgtype":"text","text":{"content":"NYIST/netboot 测试构建成功✨"}}' |