Drone: Add Docker-in-Docker service container
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Garrett Mills 2022-11-29 00:45:40 -06:00
parent 37cde7bd9f
commit 80a8521261

View File

@ -7,6 +7,10 @@ metadata:
labels: labels:
pod-security.kubernetes.io/audit: privileged pod-security.kubernetes.io/audit: privileged
services:
- name: dind-daemon
image: docker:dind
steps: steps:
- name: node.js build - name: node.js build
image: node:18 image: node:18
@ -16,10 +20,11 @@ steps:
- pnpm run build - pnpm run build
- name: container build - name: container build
image: tomkukral/buildah image: docker:latest
commands: commands:
- "buildah build -f Dockerfile -t $DOCKER_REGISTRY/garrettmills/www ." - "docker build -t $DOCKER_REGISTRY/garrettmills/www ."
- "buildah push $DOCKER_REGISTRY/garrettmills/www" - "docker push $DOCKER_REGISTRY/garrettmills/www"
environment: environment:
DOCKER_HOST: tcp://localhost:2375
DOCKER_REGISTRY: DOCKER_REGISTRY:
from_secret: DOCKER_REGISTRY from_secret: DOCKER_REGISTRY