feat(versioning): Implemented APP_VERSION from build tags
All checks were successful
Build and Publish Docker Image / deploy (push) Successful in 1m35s
All checks were successful
Build and Publish Docker Image / deploy (push) Successful in 1m35s
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Stage 1: Build
|
||||
FROM golang:1.23-alpine AS builder
|
||||
|
||||
ARG APP_VERSION=""
|
||||
|
||||
RUN apk add --no-cache git ca-certificates
|
||||
|
||||
WORKDIR /build
|
||||
@@ -21,6 +23,9 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o warpbox ./cmd/
|
||||
# Stage 2: Runtime
|
||||
FROM alpine:3.21
|
||||
|
||||
ARG APP_VERSION=""
|
||||
ENV APP_VERSION=${APP_VERSION}
|
||||
|
||||
RUN apk add \
|
||||
--no-cache \
|
||||
ca-certificates \
|
||||
|
||||
Reference in New Issue
Block a user