diff --git a/src/cli-client/snap/snapcraft.yaml b/src/cli-client/snap/snapcraft.yaml new file mode 100644 index 000000000..b40b9b73d --- /dev/null +++ b/src/cli-client/snap/snapcraft.yaml @@ -0,0 +1,31 @@ +name: oci-factory # TODO 'snapcraft register ' +base: core22 +version: '0.0.1' +summary: The OCI Factory CLI client to build, upload and release OCI images +description: | + The OCI Factory CLI client is a tool that builds, tests, and releases + the OCI images owned by Canonical using the Github workflow in + the OCI Factory repository. +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: strict + +parts: + oci-factory: + plugin: go + build-snaps: [go/latest/stable] + source: https://github.com/canonical/oci-factory + source-type: git + source-subdir: src/cli-client/cmd/oci-factory + stage-packages: + - git + # TODO remove this override-pull when the branch is merged + override-pull: | + snapcraftctl pull + git checkout ROCKS-1216-cli-client + +apps: + oci-factory: + command: bin/oci-factory + plugs: + - home + - network