Skip to content

Instantly share code, notes, and snippets.

@Roadmaster
Created October 5, 2017 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Roadmaster/c00f8aa205ccbe003f6fd24549effe02 to your computer and use it in GitHub Desktop.
Save Roadmaster/c00f8aa205ccbe003f6fd24549effe02 to your computer and use it in GitHub Desktop.
snap building scripts and yamls
namespace=${1:-tomechangosubanana}
name=${2:-1}
rev=${3:-2}
cat > snapcraft.yaml <<EOF
name: hello-$namespace-$name
version: $rev
summary: say hello
confinement: strict
grade: stable
description: $namespace's friendly test
architectures:
- amd64
apps:
hello:
command: echo "hello"
parts:
empty:
plugin: nil
EOF
snapcraft
snapcraft push hello-$namespace-${name}_${rev}_amd64.snap --release edge
rm -rf parts snap stage
name: hello-tomechangosubanana-1
version: foo4-huge
summary: say hello
confinement: strict
grade: stable
description: tomechangosubanana's friendly test
architectures:
- amd64
apps:
hello:
command: echo "hello"
parts:
empty:
plugin: nil
bigfile:
source: local-source/
plugin: dump
organize:
"*": my-big-files
snap:
- my-big-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment