www/.drone.yml
garrettmills 7d3065fb99
Some checks failed
continuous-integration/drone Build is failing
Drone: disable TLS on DinD daemon
2022-11-29 01:01:27 -06:00

36 lines
719 B
YAML

---
kind: pipeline
type: kubernetes
name: default
metadata:
labels:
pod-security.kubernetes.io/audit: privileged
services:
- name: dind-daemon
image: docker:dind
privileged: true
environment:
DOCKER_TLS_CERTDIR: ""
steps:
- name: node.js build
image: node:18
commands:
- "npm add --global pnpm"
- pnpm i
- pnpm run build
- name: container build
image: docker:latest
privileged: true
commands:
- "sleep 10"
- "docker build -t $DOCKER_REGISTRY/garrettmills/www ."
- "docker push $DOCKER_REGISTRY/garrettmills/www"
environment:
DOCKER_HOST: tcp://localhost:2376
DOCKER_REGISTRY:
from_secret: DOCKER_REGISTRY