Skip to content

Commit

Permalink
Create build-test.yml
Browse files Browse the repository at this point in the history
A yml for build test ver.
  • Loading branch information
DefiedParty authored Mar 2, 2024
1 parent e6c6e31 commit ca709cd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build test ver.

on:
push:
branches: [ "nyist-pxe" ]
pull_request:
branches: [ "nyist-pxe" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build -t localbuild -f Dockerfile .

- name: Build site
run: docker run --rm -it -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

0 comments on commit ca709cd

Please sign in to comment.