From 7f25c3f83ccabc72d3748ba0b8db089801fe49f9 Mon Sep 17 00:00:00 2001 From: pk Date: Mon, 26 Aug 2024 23:53:31 +0200 Subject: [PATCH] Improve template for docker_image.sh --- main.go | 2 +- templates/docker_image.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 9214053..b02e716 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ func main() { app := &cli.App{ Name: "gowebbuild", Usage: "All in one tool to build web frontend projects.", - Version: "6.0.0", + Version: "6.0.1", Authors: []*cli.Author{{ Name: "trading-peter (https://github.com/trading-peter)", }}, diff --git a/templates/docker_image.sh b/templates/docker_image.sh index 5b80a4a..eadac34 100755 --- a/templates/docker_image.sh +++ b/templates/docker_image.sh @@ -13,6 +13,7 @@ CGO_ENABLED=0 go build -ldflags="-s -w" -o ../{{.ProjectFolderName}} . # A second run is needed to build the final image. 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}}:latest rm -rf sources {{.ProjectFolderName}} \ No newline at end of file