Created
September 28, 2017 13:59
-
-
Save Roadmaster/984151cdbaf9a6e5255a0ef79e32c7b6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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