From 2a5ec6065570140db9f0752f70b6c6a83ba26926 Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Fri, 30 Jun 2017 16:39:55 +0100 Subject: [PATCH] Add first proper build of CI - woooo! --- .drone.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 05937a6..524c210 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,14 +1,22 @@ +services: + docker: + image: docker:dind + privileged: true + pipeline: build: image: docker + environment: + - DOCKER_HOST=tcp://docker:2375 commands: - - docker build -t plexdev . - - docker tag plexdev itpersists - - docker save -o image.tar plexdev - + - docker build -t devbuild . + test: image: docker + environment: + - DOCKER_HOST=tcp://docker:2375 commands: - - ls - - docker load -i image.tar - - docker images + - docker run --name=DEV -d -p 32400:32400 devbuild + - sleep 10 # Wait for plex to start! + - curl -s 127.0.0.1:32400 +