diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2c8a762 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,46 @@ +--- +kind: pipeline +type: docker +name: Build + +steps: +- name: build + image: plugins/docker + repo: docker.pbiernat.dev/nginx-php + username: + from_secret: docker_username + password: + from_secret: docker_password + commands: + - sleep 5 + - docker build -t docker.pbiernat.dev/nginx-php . + - docker images | grep nginx-php + volumes: + - name: docker-sock + path: /var/run + +- name: publish + image: plugins/docker + repo: docker.pbiernat.dev/nginx-php + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + branch: master + volumes: + - name: docker-sock + path: /var/run + +services: +- name: docker + image: docker:dind + privileged: true + volumes: + - name: docker-sock + path: /var/run + +volumes: +- name: docker-sock + temp: {} + diff --git a/Dockerfile b/Dockerfile index 710eefd..45b9f61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest -RUN apk add --update --no-cache coreutils supervisor acl nginx make curl bash \ - && mkdir /run/nginx && mkdir /var/www/app && mkdir /run/php +RUN apk add --update --no-cache coreutils supervisor acl nginx make curl bash icu-libs \ + && mkdir -p /run/nginx && mkdir /var/www/app && mkdir /run/php RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community \ php7 php7-fpm php7-opcache php7-mysqli php7-json php7-openssl php7-curl php7-zlib composer \