dist: bionic sudo: required services: - docker install: - curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-19.03.12.tgz | sudo tar xzv --strip-components=1 -C /usr/local/bin docker/docker - sudo mkdir -p /usr/local/lib/docker/cli-plugins - curl -fsSL https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.linux-amd64 | sudo tee /usr/local/lib/docker/cli-plugins/docker-buildx > /dev/null - sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx - docker buildx create --use - docker buildx inspect --bootstrap - docker buildx install env: - GO_VERSION=1.13 - GO_VERSION=1.14 script: - docker build --progress=plain --build-arg=GO_VERSION . - docker build --progress=plain --build-arg=GO_VERSION --target=test . - docker build --progress=plain --build-arg=GO_VERSION --target=test-noroot . - ./hack/validate-gomod - ./hack/lint - ./hack/validate-shfmt - docker build --progress=plain --build-arg=GO_VERSION --platform=linux/arm64,darwin/amd64,windows/amd64,linux/arm,linux/arm64 .