Skip to content

Commit

Permalink
build(cli-client): add snap for cli-client
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie-yang committed Jul 12, 2024
1 parent b12ffe5 commit ff2597e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/cli-client/snap/snapcraft.yaml
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

0 comments on commit ff2597e

Please sign in to comment.