action-build icon indicating copy to clipboard operation
action-build copied to clipboard

Support snapcraft --destructive-mode

Open jonathanudd opened this issue 2 years ago • 1 comments

I'm currently using a self-hosted Github runner which runs inside a lxc container and I need to use the --destructive-mode argument for snapcraft. Is this something that could be supported by this action or I'm I better of installing snapcraft and running snapcraft with individual steps?

jonathanudd avatar Dec 01 '23 10:12 jonathanudd

The value add of this action is configuring the VM so that Snapcraft can perform the build in an LXD container. If you were going to do a --destructive-mode build, you might be better off just calling Snapcraft directly.

With that said, LXD supports nested containers with appropriate configuration: https://ubuntu.com/blog/nested-containers-in-lxd -- that might let you use the action as is.

jhenstridge avatar Jul 15 '24 11:07 jhenstridge