[CI] Added kube deployment and use full path for composer
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0271fb3dfe
commit
f037b04cdf
16
.drone.yml
16
.drone.yml
@ -30,3 +30,19 @@ steps:
|
|||||||
tags:
|
tags:
|
||||||
- 'v1'
|
- 'v1'
|
||||||
- 'latest'
|
- 'latest'
|
||||||
|
|
||||||
|
|
||||||
|
# deploy to kubernetes
|
||||||
|
- image: 'docker.io/bitnami/kubectl'
|
||||||
|
name: 'deploy'
|
||||||
|
pull: 'always'
|
||||||
|
settings:
|
||||||
|
mtu: '1440'
|
||||||
|
|
||||||
|
environment:
|
||||||
|
KUBE_CONFIG:
|
||||||
|
from_secret: 'drone_kube_config'
|
||||||
|
|
||||||
|
commands:
|
||||||
|
- 'echo "$KUBE_CONFIG" > $HOME/.kube/config'
|
||||||
|
- 'kubectl -n roundcube rollout restart statefulsets roundcube-app'
|
||||||
|
@ -6,14 +6,14 @@ RUN set -e && ln -sf bash /bin/sh
|
|||||||
RUN set -e \
|
RUN set -e \
|
||||||
&& apt -y update \
|
&& apt -y update \
|
||||||
&& apt -y upgrade \
|
&& apt -y upgrade \
|
||||||
&& apt -y install --no-install-recommends --no-install-suggests ca-certificates git wget \
|
&& apt -y install --no-install-recommends --no-install-suggests ca-certificates git \
|
||||||
&& apt -y autoremove \
|
&& apt -y autoremove \
|
||||||
&& apt clean \
|
&& apt clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# install plugins using composer
|
# install plugins using composer
|
||||||
RUN set -e \
|
RUN set -e \
|
||||||
composer \
|
/usr/bin/composer \
|
||||||
--working-dir=/usr/src/roundcubemail/ \
|
--working-dir=/usr/src/roundcubemail/ \
|
||||||
--prefer-dist \
|
--prefer-dist \
|
||||||
--prefer-stable \
|
--prefer-stable \
|
||||||
|
Reference in New Issue
Block a user