[fix] Fixed image building config. #2

Merged
keedosn merged 2 commits from develop into master 2021-11-23 00:30:57 +01:00
2 changed files with 47 additions and 2 deletions
Showing only changes of commit 4ab2cb28f6 - Show all commits

45
.drone.yml Normal file
View File

@ -0,0 +1,45 @@
---
kind: pipeline
type: docker
name: Build
steps:
- name: build
image: plugins/docker
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
environment:
DOCKER_USERNAME:
from_secret: registry_username
DOCKER_PASSWORD:
from_secret: registry_password
commands:
- sleep 5
- docker login docker.pbiernat.dev -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push docker.pbiernat.dev/nginx-php
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: {}

View File

@ -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 \