Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add snap for ubuntu #965

Merged
merged 9 commits into from
Jun 6, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: oras
SamirPS marked this conversation as resolved.
Show resolved Hide resolved
version: git
summary: Package for the ORAS CLI tool
description: |
A snap package for the ORAS CLI tool, which is used for managing OCI artifacts.
base: core22
confinement: strict
grade: devel

parts:
oras:
plugin: go
source: .
build-snaps:
- go/1.20/stable
build-packages:
- make
- ca-certificates
SamirPS marked this conversation as resolved.
Show resolved Hide resolved
override-build: |
make "build-linux-$CRAFT_TARGET_ARCH"
SamirPS marked this conversation as resolved.
Show resolved Hide resolved
install -D -m755 bin/linux/$CRAFT_TARGET_ARCH/oras $CRAFT_PART_INSTALL/bin/oras

apps:
oras:
command: bin/oras
plugs:
- home
- network