Skip to content

Commit

Permalink
Fix Dockerfile after cmd move (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
p53 authored Apr 30, 2024
1 parent 9dd9042 commit 880c4d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ builds:
# Adds some metadata to the build like version, commit reference and the date of the build
ldflags:
- -s -w -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.release={{.Version}}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.gitsha={{ .FullCommit }}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.compiled={{ .Timestamp }}"
main: ./cmd/gatekeeper-keycloak.go
main: ./cmd/keycloak/gatekeeper-keycloak.go
binary: gatekeeper

- id: linux
Expand All @@ -35,7 +35,7 @@ builds:
# Adds some metadata to the build like version, commit reference and the date of the build
ldflags:
- -s -w -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.release={{.Version}}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.gitsha={{ .FullCommit }}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.compiled={{ .Timestamp }}"
main: ./cmd/gatekeeper-keycloak.go
main: ./cmd/keycloak/gatekeeper-keycloak.go
binary: gatekeeper

- id: windows
Expand All @@ -47,7 +47,7 @@ builds:
# Adds some metadata to the build like version, commit reference and the date of the build
ldflags:
- -s -w -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.release={{.Version}}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.gitsha={{ .FullCommit }}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.compiled={{ .Timestamp }}"
main: ./cmd/gatekeeper-keycloak.go
main: ./cmd/keycloak/gatekeeper-keycloak.go
binary: gatekeeper

signs:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN mkdir -p bin && \
TAG=$(git describe --tags) && \
NAME=gatekeeper && \
LFLAGS=" -X github.com/gogatekeeper/gatekeeper/pkg/proxy/core.release=$TAG -X github.com/gogatekeeper/gatekeeper/pkg/proxy/core.gitsha=$GIT_SHA -X github.com/gogatekeeper/gatekeeper/pkg/proxy/core.compiled=$BUILD_TIME" && \
CGO_ENABLED=0 go build -a -tags netgo -ldflags "-s -w ${LFLAGS}" -o bin/${NAME} cmd/gatekeeper-keycloak.go
CGO_ENABLED=0 go build -a -tags netgo -ldflags "-s -w ${LFLAGS}" -o bin/${NAME} cmd/keycloak/gatekeeper-keycloak.go

WORKDIR ${HOMEDIR}

Expand Down

0 comments on commit 880c4d3

Please sign in to comment.