From 75822f7fb80461191ca8c168dc577db7124a384c Mon Sep 17 00:00:00 2001 From: Anton Kuznetcov Date: Mon, 28 Jul 2025 17:33:06 +0600 Subject: [PATCH] Release v1.0.35 --- Dockerfile | 2 +- go.mod | 2 +- main.go | 2 +- makefile | 2 +- scripts/quick-build.sh | 6 ++++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e377d5..2ce5ec4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build stage -FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS builder +FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder # Install git and ca-certificates RUN apk --no-cache add git ca-certificates diff --git a/go.mod b/go.mod index 574fbcd..45d0fac 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module direct-dev-ru/hello_gitea -go 1.21 +go 1.24 require github.com/gin-gonic/gin v1.10.1 diff --git a/main.go b/main.go index 2e4b6b7..7a1d285 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,7 @@ import ( "github.com/gin-gonic/gin" ) -const version = "1.0.34" +const version = "1.0.35" // SystemInfo holds system information type SystemInfo struct { diff --git a/makefile b/makefile index b315c0f..275ad1f 100644 --- a/makefile +++ b/makefile @@ -2,7 +2,7 @@ BIN_DIR=bin APP_NAME=hello-api -VERSION=1.0.34 +VERSION=1.0.35 build: mkdir -p $(BIN_DIR) diff --git a/scripts/quick-build.sh b/scripts/quick-build.sh index 6e217a6..9db691f 100644 --- a/scripts/quick-build.sh +++ b/scripts/quick-build.sh @@ -13,7 +13,9 @@ fi # Собираем для указанной платформы if [ -n "$1" ] && [ -n "$2" ]; then - GOOS=$1 GOARCH=$2 go build -o "hello-api-$1-$2" main.go + echo "Building for $1 $2..." + GOOS=$1 GOARCH=$2 go build -o "bin/hello-api-$1-$2" main.go else - go build -o hello-api main.go + echo "Building for current platform..." + go build -o bin/hello-api main.go fi \ No newline at end of file