From 4e66a973919d80e859a24681dd42c67365bcdad9 Mon Sep 17 00:00:00 2001 From: Ryan McGuire Date: Sun, 20 Jul 2025 11:31:25 -0400 Subject: [PATCH] improve rename --- Dockerfile | 4 ++-- Makefile | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c2b59e1..320ce83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ARG GOPROXY ARG GONOSUMDB=gitea.libretechconsulting.com ARG VER_PKG=gitea.libretechconsulting.com/rmcguire/go-app/pkg/config.Version ARG VERSION=(devel) -ARG APP_NAME=demo-app +ARG APP_NAME=go-server-with-otel COPY ./go.mod ./go.sum ./ RUN go mod download @@ -17,7 +17,7 @@ RUN go build -C . -v -ldflags "-extldflags '-static' -X ${VER_PKG}=${VERSION}" - FROM alpine:latest -ARG APP_NAME=demo-app +ARG APP_NAME=go-server-with-otel WORKDIR /app USER 100:101 diff --git a/Makefile b/Makefile index 41b0888..af28ef1 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,8 @@ rename: exit 1; \ fi @sed -i "s|APP_NAME=.*|APP_NAME=$(APP)|g" Dockerfile - @sed -i "s|CMD_NAME := .*|CMD_NAME := $(APP)|g" Makefile + @sed -i "s|^CMD_NAME := .*|CMD_NAME := $(APP)|g" Makefile + @sed -i "s|merge_file_name=.*|merge_file_name=$(APP)|g" buf.gen.yaml @find . -type f -a \ \( -name '*.go' -o -name 'go.mod' \ -o -name 'go.sum' -o -name '*.proto' \