location should now be in path by server config

This commit is contained in:
Emil Lerch 2021-01-04 16:03:21 -08:00
parent 5ba45ade2a
commit 7fa5af6694
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -12,14 +12,11 @@ steps:
from_secret: docker_password from_secret: docker_password
REGISTRY: REGISTRY:
from_secret: docker_registry from_secret: docker_registry
DOCKER_CLI_LOCATION:
from_secret: docker-cli-location
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
commands: commands:
- apk add make git - apk add make git
- 'export PATH="$${DOCKER_CLI_LOCATION}":"$${PATH}"'
- 'while [ "$(docker info >/dev/null 2>&1; echo $?)" -ne 0 ]; do sleep 1; done' - 'while [ "$(docker info >/dev/null 2>&1; echo $?)" -ne 0 ]; do sleep 1; done'
- echo login $REGISTRY - echo login $REGISTRY
- docker login -u $USERNAME -p $PASSWORD $REGISTRY - docker login -u $USERNAME -p $PASSWORD $REGISTRY