Skip to content

Commit

Permalink
FInal changes for tsa build
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyd450 committed Dec 1, 2023
1 parent 563ded0 commit ef54174
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ ENV GOPATH=$APP_ROOT

WORKDIR $APP_ROOT/src/

copy . .
COPY . .

RUN git config --global --add safe.directory /opt/app-root/src && \
git stash && \
export GIT_VERSION=$(git describe --tags --always --dirty) && \
git stash pop && \
go mod vendor && \
go build -ldflags "${SERVER_LDFLAGS}" ./cmd/timestamp-server CGO_ENABLED=0 && \
git stash pop
CGO_ENABLED=0 go build -ldflags "${SERVER_LDFLAGS}" ./cmd/timestamp-server

# Multi-Stage production build
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.21@sha256:98a0ff138c536eee98704d6909699ad5d0725a20573e2c510a60ef462b45cce0 as deploy
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ timestamp-cli: $(SRCS) ## Build the TSA CLI
CGO_ENABLED=0 go build -trimpath -ldflags "$(CLI_LDFLAGS)" -o bin/timestamp-cli ./cmd/timestamp-cli

timestamp-server: $(SRCS) ## Build the TSA server
CGO_ENABLED=0 go build -trimpath -ldflags "$(SERVER_LDFLAGS)" ./cmd/timestamp-server
CGO_ENABLED=0 go build -trimpath -ldflags "$(SERVER_LDFLAGS)" -o bin/timestamp-server ./cmd/timestamp-server

test: timestamp-cli ## Run tests
go test ./...
Expand Down
Binary file removed timestamp-server
Binary file not shown.

0 comments on commit ef54174

Please sign in to comment.