fix issues with binary name
This commit is contained in:
parent
1cdd320255
commit
a5f300d9f7
3 changed files with 5 additions and 6 deletions
|
@ -4,7 +4,7 @@ EXPOSE 50051
|
|||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
RUN go build
|
||||
RUN go build -o herald .
|
||||
FROM alpine:latest
|
||||
COPY --from=stage1 /app/hub /hub
|
||||
ENTRYPOINT ["/herald.go", "serve"]
|
||||
COPY --from=stage1 /app/herald /herald
|
||||
ENTRYPOINT ["/herald", "serve"]
|
||||
|
|
|
@ -22,7 +22,7 @@ echo "using tag $LATEST_TAG"
|
|||
git checkout "$LATEST_TAG"
|
||||
|
||||
# CGO_ENABLED=0 go build -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
|
||||
go build -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
|
||||
go build -o herald -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
|
||||
docker build . -t lbry/herald.go:latest
|
||||
docker tag lbry/herald.go:latest lbry/herald.go:"$LATEST_TAG"
|
||||
docker push lbry/herald.go:latest
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#!/bin/bash
|
||||
./protobuf/build.sh
|
||||
go version
|
||||
go build .
|
||||
rm herald.go
|
||||
go build -o herald .
|
||||
go test -v -race -cover ./...
|
||||
|
|
Loading…
Reference in a new issue