Disable cgo on all builds, add additional tests for docker

This commit is contained in:
Cody Soyland 2020-12-08 19:42:41 -06:00
parent d05531b77a
commit eef6359db3
4 changed files with 17 additions and 1 deletions

View file

@ -147,6 +147,14 @@ jobs:
at: .
- run: sudo pip install awscli
- run: make prerelease-upload
docker-build:
executor:
name: golang
steps:
- checkout-plus
- setup_remote_docker
- run: make docker
- run: docker run pilosa:$(git describe --tags) help
dockerhub-upload-unstable:
executor:
name: golang
@ -154,6 +162,7 @@ jobs:
- checkout-plus
- setup_remote_docker
- run: make docker
- run: docker run pilosa:$(git describe --tags) help
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run: make docker-tag-push DOCKER_TARGET=moleculacorp/pilosa:<< pipeline.git.branch >>
dockerhub-upload-stable:
@ -163,6 +172,7 @@ jobs:
- checkout-plus
- setup_remote_docker
- run: make docker
- run: docker run pilosa:$(git describe --tags) help
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run: make docker-tag-push DOCKER_TARGET=moleculacorp/pilosa:<< pipeline.git.tag >>
- run: make docker-tag-push DOCKER_TARGET=moleculacorp/pilosa:latest
@ -218,6 +228,10 @@ workflows:
- cluster-tests:
requires:
- setup
- docker-build:
context: molecula
requires:
- setup
- prerelease:
requires:
- linter

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
lattice

View file

@ -5,7 +5,7 @@ ARG MAKE_FLAGS
COPY . pilosa
RUN cd pilosa && CGO_ENABLED=0 make install FLAGS="-a -mod=vendor ${BUILD_FLAGS}" ${MAKE_FLAGS}
RUN cd pilosa && make install FLAGS="-a -mod=vendor ${BUILD_FLAGS}" ${MAKE_FLAGS}
FROM alpine:3.12.1

View file

@ -31,6 +31,7 @@ endif
export GO111MODULE=on
export GOPRIVATE=github.com/molecula
export CGO_ENABLED=0
# Run tests and compile Pilosa
default: test build