speed up build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Emil Lerch 2020-12-01 18:13:56 -08:00
parent f501abe419
commit 5ba45ade2a
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -4,7 +4,7 @@ name: default
steps: steps:
- name: make - name: make
image: debian:buster-slim image: alpine
environment: environment:
USERNAME: USERNAME:
from_secret: docker_username from_secret: docker_username
@ -12,16 +12,15 @@ steps:
from_secret: docker_password from_secret: docker_password
REGISTRY: REGISTRY:
from_secret: docker_registry from_secret: docker_registry
DOCKERVERSION: "19.03.9" DOCKER_CLI_LOCATION:
from_secret: docker-cli-location
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
commands: commands:
- apt-get update && apt install -y --no-install-recommends curl make ca-certificates git - apk add make git
- curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-$${DOCKERVERSION}.tgz - 'export PATH="$${DOCKER_CLI_LOCATION}":"$${PATH}"'
- tar xzvf docker-$${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker - 'while [ "$(docker info >/dev/null 2>&1; echo $?)" -ne 0 ]; do sleep 1; done'
- rm docker-$${DOCKERVERSION}.tgz
- sleep 5 # give docker enough time to start
- echo login $REGISTRY - echo login $REGISTRY
- docker login -u $USERNAME -p $PASSWORD $REGISTRY - docker login -u $USERNAME -p $PASSWORD $REGISTRY
- make manifest-list - make manifest-list