Merge pull request #4 from madmath03/master

Added basic Travis CI and fix deprecated maintainer label
This commit is contained in:
Thomas B 2018-04-12 22:47:22 +02:00 committed by GitHub
commit 21a8cef073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 2 deletions

32
.travis.yml Normal file
View File

@ -0,0 +1,32 @@
dist: trusty
sudo: required
services: docker
language: bash
branches:
only:
- master
before_script:
- env | sort
- name="roundcubemail"
- image="roundcube/roundcubemail:${VERSION}${VARIANT:+-$VARIANT}"
- dir="php-${VARIANT}"
script:
- travis_retry docker build -t "$image" "$dir"
after_script:
- docker images
- docker run --name "$name" -d "$image" "$dir"
- docker ps
- docker logs "$name"
notifications:
email: false
env: # Environments
- VERSION=1.3.4 VARIANT=fpm
- VERSION=1.3.4 VARIANT=apache

View File

@ -1,3 +1,7 @@
[![Build Status](https://travis-ci.org/roundcube/roundcubemail-docker.svg)](https://travis-ci.org/roundcube/roundcubemail-docker)
[![Docker Pulls](https://img.shields.io/docker/pulls/roundcube/roundcubemail.svg)](https://hub.docker.com/r/roundcube/roundcubemail/)
# Running Roundcube in a Docker Container # Running Roundcube in a Docker Container
The simplest method is to run the official image: The simplest method is to run the official image:

View File

@ -1,5 +1,5 @@
FROM php:7.1-apache FROM php:7.1-apache
MAINTAINER Thomas Bruederli <thomas@roundcube.net> LABEL maintainer="Thomas Bruederli <thomas@roundcube.net>"
RUN apt-get -qq update \ RUN apt-get -qq update \
&& apt-get install -qq \ && apt-get install -qq \

View File

@ -1,5 +1,5 @@
FROM php:7.1-fpm FROM php:7.1-fpm
MAINTAINER Thomas Bruederli <thomas@roundcube.net> LABEL maintainer="Thomas Bruederli <thomas@roundcube.net>"
RUN apt-get -qq update \ RUN apt-get -qq update \
&& apt-get install -qq \ && apt-get install -qq \