mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-05 11:26:27 +02:00
Install LXC in workflow
This commit is contained in:
parent
7b3565a067
commit
a331b62315
1 changed files with 8 additions and 0 deletions
8
.github/workflows/lxc-build.yml
vendored
8
.github/workflows/lxc-build.yml
vendored
|
@ -19,6 +19,14 @@ jobs:
|
|||
- name: Validate Container
|
||||
run: packer validate piston.pkr.hcl
|
||||
working-directory: container
|
||||
|
||||
- name: Install LXC
|
||||
run: |
|
||||
apt install -y lxc lxc-templates debootstrap libvirt0
|
||||
echo "lxc.net.0.type = veth" > /etc/lxc/default.conf
|
||||
echo "lxc.net.0.link = lxcbr0" >> /etc/lxc/default.conf
|
||||
echo "lxc.net.0.flags = up" >> /etc/lxc/default.conf
|
||||
systemctl start lxc-net
|
||||
|
||||
# build container
|
||||
- name: Build Artifact
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue