Skip to content

Commit d08594d

Browse files
committed
chore: fix chore build
1 parent b4ac2f3 commit d08594d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1.4
22
# Use BuildKit for cache mounts (faster CI: DOCKER_BUILDKIT=1)
3-
FROM golang:1.25-alpine3.23 AS go-builder
3+
FROM golang:1.25-alpine3.22 AS go-builder
44
WORKDIR /authorizer
55

66
ARG TARGETPLATFORM
@@ -29,10 +29,10 @@ COPY gqlgen.yml ./
2929
RUN --mount=type=cache,target=/go/pkg/mod \
3030
--mount=type=cache,target=/root/.cache/go-build \
3131
mkdir -p build/${GOOS}/${GOARCH} && \
32-
go build -trimpath -mod=readonly -tags netgo -ldflags "-w -s -X main.VERSION=$VERSION" -o build/${GOOS}/${GOARCH}/authorizer . && \
32+
go build -trimpath -mod=readonly -tags netgo -ldflags "-w -s -X github.com/authorizerdev/authorizer/internal/constants.VERSION=$VERSION" -o build/${GOOS}/${GOARCH}/authorizer . && \
3333
chmod 755 build/${GOOS}/${GOARCH}/authorizer
3434

35-
FROM alpine:3.23.3 AS node-builder
35+
FROM alpine:3.22.0 AS node-builder
3636
WORKDIR /authorizer
3737
COPY web/app/package*.json web/app/
3838
COPY web/dashboard/package*.json web/dashboard/
@@ -46,7 +46,7 @@ COPY web/app web/app
4646
COPY web/dashboard web/dashboard
4747
RUN cd web/app && npm run build && cd ../dashboard && npm run build
4848

49-
FROM alpine:3.23.3
49+
FROM alpine:3.22.0
5050

5151
ARG TARGETARCH=amd64
5252

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build:
1414
CGO_ENABLED=0 gox \
1515
-mod=readonly \
1616
-osarch="linux/amd64 linux/arm64 darwin/amd64 darwin/arm64" \
17-
-ldflags="-w -X main.VERSION=$(VERSION)" \
17+
-ldflags="-w -X github.com/authorizerdev/authorizer/internal/constants.VERSION=$(VERSION)" \
1818
-output="./build/{{.OS}}/{{.Arch}}/$(PROJECT)" \
1919
-tags="netgo" \
2020
./...

0 commit comments

Comments
 (0)