From fec90c5803d6eb5ab723891202ed8da9574e8565 Mon Sep 17 00:00:00 2001 From: Pedro Nasser Date: Wed, 27 Jul 2016 18:36:05 -0300 Subject: [PATCH] fixing contributing scripts --- api.sh | 5 +++++ hack/build.sh => build.sh | 0 hack/api.sh | 5 ----- hack/release.sh => release.sh | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) create mode 100755 api.sh rename hack/build.sh => build.sh (100%) delete mode 100755 hack/api.sh rename hack/release.sh => release.sh (78%) diff --git a/api.sh b/api.sh new file mode 100755 index 000000000..7562ac6d1 --- /dev/null +++ b/api.sh @@ -0,0 +1,5 @@ +set -ex + +./build.sh + +docker run --rm --privileged -it -p 8080:8080 -e LOG_LEVEL=debug -v $PWD/bolt.db:/app/bolt.db iron/functions \ No newline at end of file diff --git a/hack/build.sh b/build.sh similarity index 100% rename from hack/build.sh rename to build.sh diff --git a/hack/api.sh b/hack/api.sh deleted file mode 100755 index b64c7e699..000000000 --- a/hack/api.sh +++ /dev/null @@ -1,5 +0,0 @@ -set -ex - -docker run --rm -v "$PWD":/go/src/github.com/iron-io/functions -w /go/src/github.com/iron-io/functions iron/go:dev sh -c 'go build -o functions' -docker build -t iron/functions:latest . -docker run --rm -it -p 8080:8080 -e LOG_LEVEL=debug -v $PWD/bolt.db:/app/bolt.db iron/functions \ No newline at end of file diff --git a/hack/release.sh b/release.sh similarity index 78% rename from hack/release.sh rename to release.sh index 39d344eac..5cce74f80 100755 --- a/hack/release.sh +++ b/release.sh @@ -15,8 +15,7 @@ perl -i -pe 's/\d+\.\d+\.\K(\d+)/$1+1/e' $version_file version=$(grep -m1 -Eo "[0-9]+\.[0-9]+\.[0-9]+" $version_file) echo "Version: $version" -docker run --rm -v "$PWD":/go/src/github.com/iron-io/functions -w /go/src/github.com/iron-io/functions iron/go:dev sh -c 'go build -o functions' -docker build -t iron/functions:latest . +./build.sh git add -u git commit -m "$service: $version release"