Herald.go #47
5 changed files with 8 additions and 6 deletions
|
@ -2,4 +2,4 @@ name: 'Build and Test'
|
|||
description: 'Build and test hub'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'jeffreypicard/hub-github-action'
|
||||
image: 'jeffreypicard/hub-github-action:dev'
|
|
@ -7,4 +7,4 @@ COPY . /app
|
|||
RUN go build
|
||||
FROM alpine:latest
|
||||
COPY --from=stage1 /app/hub /hub
|
||||
ENTRYPOINT ["/hub", "serve"]
|
||||
ENTRYPOINT ["/herald.go", "serve"]
|
||||
|
|
|
@ -17,9 +17,9 @@ RUN cd /tmp && \
|
|||
RUN cd /tmp && \
|
||||
git clone https://github.com/facebook/rocksdb.git && \
|
||||
cd rocksdb && \
|
||||
git checkout v6.26.1 && \
|
||||
make shared_lib && \
|
||||
make install-shared && \
|
||||
git checkout v6.29.5 && \
|
||||
make static_lib && \
|
||||
make install && \
|
||||
rm -rf /tmp/rocksdb
|
||||
|
||||
CMD ["bash"]
|
||||
|
|
|
@ -21,7 +21,8 @@ echo "using tag $LATEST_TAG"
|
|||
# Checkout latest tag
|
||||
git checkout "$LATEST_TAG"
|
||||
|
||||
CGO_ENABLED=0 go build -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
|
||||
# CGO_ENABLED=0 go build -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
|
||||
go build -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
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
./protobuf/build.sh
|
||||
go version
|
||||
go build .
|
||||
rm herald.go
|
||||
go test -v -race -cover ./...
|
||||
|
|
Loading…
Reference in a new issue