Compare commits

...

5 Commits

Author SHA1 Message Date
René Jochum eb487be25e Move from gitlab-ci to drone
Signed-off-by: René Jochum <rene@jochum.dev>
2 years ago
René Jochum 03bd6a2f13 Fix the template in the README
Signed-off-by: René Jochum <rene@jochum.dev>
2 years ago
René Jochum 199e5d38bd Upgrade to roundcube 1.6.0, use registry cache
Signed-off-by: René Jochum <rene@jochum.dev>
2 years ago
René Jochum cfddf20eb0 Add .gitlab-ci.yml, remove own registry
Signed-off-by: René Jochum <rene@jochum.dev>
2 years ago
René Jochum e6ec2eee7f 1.4.11-apache-r3
Signed-off-by: René Jochum <rene@jochum.dev>
3 years ago

@ -0,0 +1,25 @@
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
trigger:
event:
- cron
- custom
- tag
steps:
- name: build
image: plugins/docker
settings:
registry: registry.fk.jochum.dev
username: robot$mail+drone
password:
from_secret: registry.fk.jochum.dev-robot
repo: registry.fk.jochum.dev/mail/roundcube
auto_tag: true

@ -1,18 +0,0 @@
stages:
- name: build_and_publish
steps:
- publishImageConfig:
dockerfilePath: ./Dockerfile
buildContext: .
tag: registry.jochum.dev/jochum/roundcube:${CICD_GIT_TAG}
pushRemote: true
registry: registry.jochum.dev
timeout: 60
notification:
recipients:
- recipient: rene@jochum.dev
notifier: local:n-wnbgn
condition:
- Success
- Changed
- Failed

@ -1,4 +1,4 @@
FROM registry.jochum.dev/roundcube/roundcubemail:1.4.8-apache
FROM registry.fk.jochum.dev/docker_hub_cache/roundcube/roundcubemail:1.6.0-apache
LABEL maintainer="René Jochum <rene@jochum.dev>"

@ -7,7 +7,7 @@ ROUNDCUBEMAIL_DEFAULT_PORT = 143
ROUNDCUBEMAIL_SMTP_SERVER = dovecot.mail.svc.cluster.local
ROUNDCUBEMAIL_SMTP_PORT = 587
ROUNDCUBEMAIL_PLUGINS = archive,zipdownload,password,managesieve
ROUNDCUBEMAIL_SKIN = larry
ROUNDCUBEMAIL_SKIN = elastic
ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE = 100M
ROUNDCUBEMAIL_DB_TYPE = pgsql

@ -3,6 +3,15 @@
# PWD=`pwd`
if [ -z "${APT_CACHER}" ]; then
APT_CACHER="apt-cacher.apt-cacher.svc.cluster.local"
fi
nc -w1 -z ${APT_CACHER} 3142 1>/dev/null 2>&1 && \
echo 'Acquire::HTTP::Proxy "http://'${APT_CACHER}':3142";' >> /etc/apt/apt.conf.d/01proxy && \
echo 'Acquire::HTTPS::Proxy "false";' >> /etc/apt/apt.conf.d/01proxy
if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."
@ -72,6 +81,16 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
echo "Write config to $PWD/config/config.inc.php"
echo "<?php
\$config['imap_conn_options'] = array(
'ssl' => array('verify_peer' => false, 'verify_peer_name' => false),
'tls' => array('verify_peer' => false, 'verify_peer_name' => false),
);
\$config['smtp_conn_options'] = array(
'ssl' => array('verify_peer' => false, 'verify_peer_name' => false),
'tls' => array('verify_peer' => false, 'verify_peer_name' => false),
);
\$config['db_dsnw'] = '${ROUNDCUBEMAIL_DSNW}';
\$config['db_dsnr'] = '${ROUNDCUBEMAIL_DSNR}';
\$config['default_host'] = '${ROUNDCUBEMAIL_DEFAULT_HOST}';

Loading…
Cancel
Save