Improve template for docker_image.sh
This commit is contained in:
parent
e87dfaf38b
commit
7f25c3f83c
2
main.go
2
main.go
@ -23,7 +23,7 @@ func main() {
|
|||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: "gowebbuild",
|
Name: "gowebbuild",
|
||||||
Usage: "All in one tool to build web frontend projects.",
|
Usage: "All in one tool to build web frontend projects.",
|
||||||
Version: "6.0.0",
|
Version: "6.0.1",
|
||||||
Authors: []*cli.Author{{
|
Authors: []*cli.Author{{
|
||||||
Name: "trading-peter (https://github.com/trading-peter)",
|
Name: "trading-peter (https://github.com/trading-peter)",
|
||||||
}},
|
}},
|
||||||
|
@ -13,6 +13,7 @@ CGO_ENABLED=0 go build -ldflags="-s -w" -o ../{{.ProjectFolderName}} .
|
|||||||
|
|
||||||
# A second run is needed to build the final image.
|
# A second run is needed to build the final image.
|
||||||
cd ..
|
cd ..
|
||||||
docker build -f sources/Dockerfile --no-cache -t {{.GoModuleName}}:${ver} .
|
docker build -f sources/Dockerfile --no-cache -t {{.GoModuleName}}:${ver} -t {{.GoModuleName}}:latest .
|
||||||
docker push {{.GoModuleName}}:${ver}
|
docker push {{.GoModuleName}}:${ver}
|
||||||
|
docker push {{.GoModuleName}}:latest
|
||||||
rm -rf sources {{.ProjectFolderName}}
|
rm -rf sources {{.ProjectFolderName}}
|
Loading…
Reference in New Issue
Block a user