mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
18 lines
381 B
Bash
Executable File
18 lines
381 B
Bash
Executable File
set -ex
|
|
|
|
USERNAME=iron
|
|
IMAGE=hello
|
|
|
|
# build it
|
|
./build.sh
|
|
# test it
|
|
echo '{"name":"Johnny"}' | docker run --rm -i $USERNAME/hello
|
|
# tag it
|
|
docker run --rm -v "$PWD":/app treeder/bump patch
|
|
version=`cat VERSION`
|
|
echo "version: $version"
|
|
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$version
|
|
# push it
|
|
docker push $USERNAME/$IMAGE:latest
|
|
docker push $USERNAME/$IMAGE:$version
|