mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
functions: 0.0.23 release
This commit is contained in:
@@ -8,15 +8,14 @@ tag="latest"
|
|||||||
|
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
||||||
if [ -z $(grep -Eo -m1 "[0-9]+\.[0-9]+\.[0-9]+" $version_file) ]; then
|
if [ -z $(grep -m1 -Eo "[0-9]+\.[0-9]+\.[0-9]+" $version_file) ]; then
|
||||||
echo "did not find semantic version in $version_file"
|
echo "did not find semantic version in $version_file"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
perl -i -pe 's/\d+\.\d+\.\K(\d+)/$1+1/e' $version_file
|
perl -i -pe 's/\d+\.\d+\.\K(\d+)/$1+1/e' $version_file
|
||||||
version=$(grep -Eo "[0-9]+\.[0-9]+\.[0-9]+" $version_file)
|
version=$(grep -m1 -Eo "[0-9]+\.[0-9]+\.[0-9]+" $version_file)
|
||||||
echo "Version: $version"
|
echo "Version: $version"
|
||||||
|
|
||||||
git add -u
|
git add -u
|
||||||
git commit -m "$service: $version release"
|
git commit -m "$service: $version release"
|
||||||
git tag -a "$version" -m "version $version"
|
git tag -a "$version" -m "version $version"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ var config struct {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const Version = "0.0.21"
|
const Version = "0.0.23"
|
||||||
|
|
||||||
//var routingTable = map[string]*Route{}
|
//var routingTable = map[string]*Route{}
|
||||||
var icache = cache.New("routing-table")
|
var icache = cache.New("routing-table")
|
||||||
@@ -113,7 +113,7 @@ func main() {
|
|||||||
http.Handle("/", r)
|
http.Handle("/", r)
|
||||||
port := 8080
|
port := 8080
|
||||||
log.Infoln("Router started, listening and serving on port", port)
|
log.Infoln("Router started, listening and serving on port", port)
|
||||||
log.Fatal(http.ListenAndServe(fmt.Sprintf("0.0.2.0:%v", port), nil))
|
log.Fatal(http.ListenAndServe(fmt.Sprintf("0.0.4.0:%v", port), nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
type NewApp struct{}
|
type NewApp struct{}
|
||||||
|
|||||||
Reference in New Issue
Block a user