Skip to content

Instantly share code, notes, and snippets.

@Roadmaster
Created September 28, 2017 13:59
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/984151cdbaf9a6e5255a0ef79e32c7b6 to your computer and use it in GitHub Desktop.
Save Roadmaster/984151cdbaf9a6e5255a0ef79e32c7b6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# ./thebuilder.sh tomechangosubanana 1 foo-2017-09-26-01
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment