run packer as sudo

This commit is contained in:
Thomas Hobson 2021-01-28 13:54:40 +13:00
parent 4e60ab080b
commit 208a3dcee8
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 5 additions and 2 deletions

View File

@ -33,9 +33,12 @@ jobs:
# build container # build container
- name: Build Artifact - name: Build Artifact
run: packer build -var 'make_threads=32' -var 'apt_mirror=http://azure.archive.ubuntu.com/ubuntu' piston.pkr.hcl run: sudo packer build -var 'make_threads=32' -var 'apt_mirror=http://azure.archive.ubuntu.com/ubuntu' piston.pkr.hcl
working-directory: container
- name: chown everything
run: |
sudo chown -R runner:runner .
working-directory: container working-directory: container
- name: Rename config - name: Rename config
run: mv lxc-config config run: mv lxc-config config
working-directory: container working-directory: container