Update
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Steve McMaster 2024-02-03 14:06:25 -05:00
parent 525c5d9102
commit 1480bdecb0

View File

@ -2,44 +2,14 @@ kind: pipeline
name: default
type: docker
environment:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: /certs/client
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
image: docker:dind
volumes:
- name: docker_tls_certs
path: /certs
environment:
DOCKER_BUILDKIT: 1
commands:
- docker build --tag cr.smcm.xyz/apps/${DRONE_REPO_NAME}:${DRONE_COMMIT_SHA} --cache-from cr.smcm.xyz/apps/${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 push --all-tags cr.smcm.xyz/apps/${DRONE_REPO_NAME}
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: docker_tls_certs
path: /certs
commands:
- /usr/local/bin/dockerd-entrypoint.sh --mtu=1450 --dns=10.244.128.10
volumes:
- name: docker_tls_certs
temp: {}
image: plugins/docker
settings:
repo: cr.smcm.xyz/apps/${DRONE_REPO_NAME}
cache_from: [cr.smcm.xyz/apps/${DRONE_REPO_NAME}]
tags: ["latest", "${DRONE_COMMIT_SHA}"]
pull_image: True
trigger:
branch: