Herald.go #47

Merged
jeffreypicard merged 5 commits from herald.go into master 2022-08-09 13:43:02 +02:00
5 changed files with 8 additions and 6 deletions
Showing only changes of commit 1cdd320255 - Show all commits

View file

@ -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'

View file

@ -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"]

View file

@ -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"]

View file

@ -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

View file

@ -2,4 +2,5 @@
./protobuf/build.sh
go version
go build .
rm herald.go
go test -v -race -cover ./...