Release v1.0.35

This commit is contained in:
2025-07-28 17:33:06 +06:00
parent 707cd82717
commit fe9cdeba0a
5 changed files with 8 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
# Build stage # 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 # Install git and ca-certificates
RUN apk --no-cache add git ca-certificates RUN apk --no-cache add git ca-certificates

2
go.mod
View File

@@ -1,6 +1,6 @@
module direct-dev-ru/hello_gitea module direct-dev-ru/hello_gitea
go 1.21 go 1.24
require github.com/gin-gonic/gin v1.10.1 require github.com/gin-gonic/gin v1.10.1

View File

@@ -11,7 +11,7 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
const version = "1.0.34" const version = "1.0.35"
// SystemInfo holds system information // SystemInfo holds system information
type SystemInfo struct { type SystemInfo struct {

View File

@@ -2,7 +2,7 @@
BIN_DIR=bin BIN_DIR=bin
APP_NAME=hello-api APP_NAME=hello-api
VERSION=1.0.34 VERSION=1.0.35
build: build:
mkdir -p $(BIN_DIR) mkdir -p $(BIN_DIR)

View File

@@ -13,7 +13,9 @@ fi
# Собираем для указанной платформы # Собираем для указанной платформы
if [ -n "$1" ] && [ -n "$2" ]; then 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 else
go build -o hello-api main.go echo "Building for current platform..."
go build -o bin/hello-api main.go
fi fi