update ci config
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Steve McMaster 2022-11-05 11:42:49 -04:00
parent 4fd8f5234f
commit 6117bffcb0

View File

@ -2,16 +2,29 @@ kind: pipeline
name: default name: default
type: docker type: docker
environment:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: /certs/client
steps: steps:
- name: wait for docker
image: docker:dind
volumes:
- name: docker_tls_certs
path: /certs
commands:
- while true ; do docker ps > /dev/null 2>&1 && break || sleep 1 ; done
- name: build - name: build
image: docker:dind image: docker:dind
volumes: volumes:
- name: dockersock - name: docker_tls_certs
path: /var/run path: /certs
environment:
DOCKER_BUILDKIT: 1
commands: commands:
- sleep 8 - docker build --tag cr.smcm.xyz/apps/${DRONE_REPO_NAME}:${DRONE_COMMIT_SHA} --cache-from cr.smcm.xyz/apps/${DRONE_REPO_NAME}:latest .
- DOCKER_BUILDKIT=1 docker build --tag cr.smcm.xyz/${DRONE_REPO_NAME}:${DRONE_COMMIT_SHA} --cache-from cr.smcm.xyz/${DRONE_REPO_NAME}:latest . - docker tag cr.smcm.xyz/apps/${DRONE_REPO_NAME}:${DRONE_COMMIT_SHA} cr.smcm.xyz/apps/${DRONE_REPO_NAME}:latest
- docker tag cr.smcm.xyz/${DRONE_REPO_NAME}:${DRONE_COMMIT_SHA} cr.smcm.xyz/${DRONE_REPO_NAME}:latest
- docker push --all-tags cr.smcm.xyz/${DRONE_REPO_NAME} - docker push --all-tags cr.smcm.xyz/${DRONE_REPO_NAME}
services: services:
@ -19,11 +32,13 @@ services:
image: docker:dind image: docker:dind
privileged: true privileged: true
volumes: volumes:
- name: dockersock - name: docker_tls_certs
path: /var/run path: /certs
commands:
- /usr/local/bin/dockerd-entrypoint.sh --mtu=1450 --dns=10.244.128.10
volumes: volumes:
- name: dockersock - name: docker_tls_certs
temp: {} temp: {}
trigger: trigger:
@ -31,4 +46,4 @@ trigger:
- main - main
event: event:
- push - push
- custom - custom