init commit
continuous-integration/drone Build encountered an error
Details
continuous-integration/drone Build encountered an error
Details
parent
0b02650eeb
commit
661ff79446
@ -0,0 +1,26 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: docker-build
|
||||
|
||||
steps:
|
||||
- name: docker build
|
||||
image: shnee:dind
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
commands:
|
||||
- sleep 5 # give docker enough time to start
|
||||
- make
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
@ -0,0 +1,4 @@
|
||||
FROM docker:dind
|
||||
|
||||
RUN apk add --no-cache \
|
||||
make
|
||||
@ -0,0 +1,21 @@
|
||||
default: build
|
||||
|
||||
DATE = $(shell date +%F)
|
||||
SHORT_COMMIT_HASH = $(shell git log -1 --format=%h)
|
||||
|
||||
build:
|
||||
docker build . -t shnee/dind:latest
|
||||
|
||||
tag:
|
||||
docker tag shnee/dind:latest shnee/dind:$(DATE)-$(SHORT_COMMIT_HASH)
|
||||
|
||||
clean: rm-unique
|
||||
-docker rmi shnee/dind:latest
|
||||
|
||||
rm-unique:
|
||||
-docker rmi shnee/dind:$(DATE)-$(SHORT_COMMIT_HASH)
|
||||
|
||||
help:
|
||||
@echo TODO REM do me.
|
||||
|
||||
.PHONY: default build tag clean rm-unique help
|
||||
Loading…
Reference in New Issue