update ci/cd stuff
This commit is contained in:
parent
b301fb953e
commit
1cdd320255
5 changed files with 8 additions and 6 deletions
|
@ -2,4 +2,4 @@ name: 'Build and Test'
|
||||||
description: 'Build and test hub'
|
description: 'Build and test hub'
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'jeffreypicard/hub-github-action'
|
image: 'jeffreypicard/hub-github-action:dev'
|
|
@ -7,4 +7,4 @@ COPY . /app
|
||||||
RUN go build
|
RUN go build
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
COPY --from=stage1 /app/hub /hub
|
COPY --from=stage1 /app/hub /hub
|
||||||
ENTRYPOINT ["/hub", "serve"]
|
ENTRYPOINT ["/herald.go", "serve"]
|
||||||
|
|
|
@ -17,9 +17,9 @@ RUN cd /tmp && \
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
git clone https://github.com/facebook/rocksdb.git && \
|
git clone https://github.com/facebook/rocksdb.git && \
|
||||||
cd rocksdb && \
|
cd rocksdb && \
|
||||||
git checkout v6.26.1 && \
|
git checkout v6.29.5 && \
|
||||||
make shared_lib && \
|
make static_lib && \
|
||||||
make install-shared && \
|
make install && \
|
||||||
rm -rf /tmp/rocksdb
|
rm -rf /tmp/rocksdb
|
||||||
|
|
||||||
CMD ["bash"]
|
CMD ["bash"]
|
||||||
|
|
|
@ -21,7 +21,8 @@ echo "using tag $LATEST_TAG"
|
||||||
# Checkout latest tag
|
# Checkout latest tag
|
||||||
git 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 build . -t lbry/herald.go:latest
|
||||||
docker tag lbry/herald.go:latest lbry/herald.go:"$LATEST_TAG"
|
docker tag lbry/herald.go:latest lbry/herald.go:"$LATEST_TAG"
|
||||||
docker push lbry/herald.go:latest
|
docker push lbry/herald.go:latest
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
./protobuf/build.sh
|
./protobuf/build.sh
|
||||||
go version
|
go version
|
||||||
go build .
|
go build .
|
||||||
|
rm herald.go
|
||||||
go test -v -race -cover ./...
|
go test -v -race -cover ./...
|
||||||
|
|
Loading…
Reference in a new issue