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 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: plugins/docker
volumes: settings:
- name: docker_tls_certs repo: cr.smcm.xyz/apps/${DRONE_REPO_NAME}
path: /certs cache_from: [cr.smcm.xyz/apps/${DRONE_REPO_NAME}]
environment: tags: ["latest", "${DRONE_COMMIT_SHA}"]
DOCKER_BUILDKIT: 1 pull_image: True
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: {}
trigger: trigger:
branch: branch: