-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(cli-client): add snap for cli-client
- Loading branch information
1 parent
b12ffe5
commit ff2597e
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: oci-factory # TODO 'snapcraft register <name>' | ||
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 |