Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Copyjson (#119)
Browse files Browse the repository at this point in the history
* fix: add top level gomod for microservice build

* fix: modify makefile to handle building from root

Signed-off-by: Brian McGinn <[email protected]>

* fix: copy json files

Signed-off-by: Brian McGinn <[email protected]>

* fix: copy binary to root path for build

Signed-off-by: Brian McGinn <[email protected]>

---------

Signed-off-by: Brian McGinn <[email protected]>
  • Loading branch information
brian-intel authored Aug 29, 2023
1 parent 68b85f4 commit d70bab6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,7 @@ hadolint:

gobuild:
cd ms-authentication && \
cp -r ms-authentication/*.json . && \
CGO_ENABLED=1 GOOS=linux go build -ldflags='-s -w' -a -installsuffix cgo main.go
cp -r *.json .. && \
cp ./res/configuration.toml ../res/configuration.toml && \
CGO_ENABLED=1 GOOS=linux go build -ldflags='-s -w' -a -installsuffix cgo main.go && \
cp main ..

0 comments on commit d70bab6

Please sign in to comment.