mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Makefile (#122)
* Update Readme and add Makefile * Skip stale tests (in wait for stdin support) * Revert "Skip stale tests (in wait for stdin support)" This reverts commit 228da3776503f40ca53df70a79a9e4a9c73fd8b5.
This commit is contained in:
committed by
GitHub
parent
3bafb38e6d
commit
b7bf73f5d2
30
release.sh
30
release.sh
@@ -1,30 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
user="iron"
|
||||
service="functions"
|
||||
version_file="api/server/version.go"
|
||||
tag="latest"
|
||||
|
||||
if [ -z $(grep -m1 -Eo "[0-9]+\.[0-9]+\.[0-9]+" $version_file) ]; then
|
||||
echo "did not find semantic version in $version_file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
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"
|
||||
|
||||
./build.sh
|
||||
|
||||
git add -u
|
||||
git commit -m "$service: $version release"
|
||||
git tag -a "$version" -m "version $version"
|
||||
git push
|
||||
git push --tags
|
||||
|
||||
# Finally tag and push docker images
|
||||
docker tag $user/$service:$tag $user/$service:$version
|
||||
|
||||
docker push $user/$service:$version
|
||||
docker push $user/$service:$tag
|
||||
Reference in New Issue
Block a user