25 lines
355 B
YAML
25 lines
355 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: Build
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: docker:dind
|
||
|
volumes:
|
||
|
- name: docker-socket
|
||
|
path: /var/run/docker.sock
|
||
|
commands:
|
||
|
- docker build -t "nikola:${DRONE_TAG}" /drone/src/
|
||
|
when:
|
||
|
event:
|
||
|
- tag
|
||
|
|
||
|
volumes:
|
||
|
- name: docker-socket
|
||
|
host:
|
||
|
path: /var/run/docker.sock
|
||
|
|
||
|
trigger:
|
||
|
event:
|
||
|
- tag
|