mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-05 11:26:27 +02:00
Github Actions
This commit is contained in:
parent
219364af97
commit
7b3565a067
2 changed files with 51 additions and 5 deletions
38
.github/workflows/lxc-build.yml
vendored
Normal file
38
.github/workflows/lxc-build.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
|
||||
name: LXC Build
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
packer:
|
||||
runs-on: ubuntu-latest
|
||||
name: packer
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# validate templates
|
||||
- name: Validate Container
|
||||
run: packer validate piston.pkr.hcl
|
||||
working-directory: container
|
||||
|
||||
# build container
|
||||
- name: Build Artifact
|
||||
run: packer build -var 'make_threads=32' piston.pkr.hcl
|
||||
working-directory: container
|
||||
|
||||
- name: Rename config
|
||||
run: mv lxc-config config
|
||||
working-directory: container
|
||||
|
||||
# Upload container
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: lxc-container
|
||||
path: |
|
||||
container/output-piston-bionic/config
|
||||
container/output-piston-bionic/rootfs.tar.gz
|
Loading…
Add table
Add a link
Reference in a new issue