Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
5da628da37
|
|||
8ccca639a3 | |||
c27efd5fc8 | |||
71a429dcf5 | |||
a43ec2db9f | |||
c01876e1b2 |
@@ -11,7 +11,7 @@ steps:
|
|||||||
from_secret: discord_webhook_id
|
from_secret: discord_webhook_id
|
||||||
webhook_token:
|
webhook_token:
|
||||||
from_secret: discord_webhook_secret
|
from_secret: discord_webhook_secret
|
||||||
message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
|
message: 'Starting building **{{repo.name}}#{{build.number}}@{{commit.sha}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
@@ -36,7 +36,7 @@ steps:
|
|||||||
from_secret: discord_webhook_secret
|
from_secret: discord_webhook_secret
|
||||||
message: "
|
message: "
|
||||||
{{#success build.status}}
|
{{#success build.status}}
|
||||||
**{{repo.name}}#{{build.number}}@{{build.commit}}** deployed.
|
**{{repo.name}}#{{build.number}}@{{commit.sha}}** deployed.
|
||||||
{{ else }}
|
{{ else }}
|
||||||
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
|
**{{repo.name}}#{{build.number}}@{{commit.sha}}** failed. See {{build.link}}.
|
||||||
{{/success}}"
|
{{/success}}"
|
||||||
|
61
.gitlab-ci.yml
Normal file
61
.gitlab-ci.yml
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
image: docker:19.03.13
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker:19.03.13-dind
|
||||||
|
|
||||||
|
variables:
|
||||||
|
DOCKER_HOST: tcp://docker:2375
|
||||||
|
DOCKER_TCP_PORT: 2375
|
||||||
|
DOCKER_TLS_CERTDIR: ""
|
||||||
|
LOCAL_REGISTRY_IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest
|
||||||
|
LOCAL_REGISTRY_IMAGE_TAGGED: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
||||||
|
DOCKERHUB_IMAGE_LATEST: pztrn/rainloop:latest
|
||||||
|
DOCKERHUB_IMAGE_TAGGED: pztrn/rainloop:$CI_COMMIT_TAG
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
|
- docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_PASSWORD"
|
||||||
|
- docker info
|
||||||
|
|
||||||
|
build-local-registry-latest:
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
script:
|
||||||
|
- docker build --pull -t $LOCAL_REGISTRY_IMAGE_LATEST .
|
||||||
|
- docker push $LOCAL_REGISTRY_IMAGE_LATEST
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
build-local-registry-version:
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
script:
|
||||||
|
- docker build --pull -t $LOCAL_REGISTRY_IMAGE_TAGGED .
|
||||||
|
- docker push $LOCAL_REGISTRY_IMAGE_TAGGED
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
|
||||||
|
build-dockerhub-latest:
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
script:
|
||||||
|
- docker build --pull -t $DOCKERHUB_IMAGE_LATEST .
|
||||||
|
- docker push $DOCKERHUB_IMAGE_LATEST
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
build-dockerhub-version:
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
script:
|
||||||
|
- docker build --pull -t $DOCKERHUB_IMAGE_TAGGED .
|
||||||
|
- docker push $DOCKERHUB_IMAGE_TAGGED
|
||||||
|
only:
|
||||||
|
- tags
|
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.11
|
FROM alpine:3.12
|
||||||
|
|
||||||
# Install necessary things
|
# Install necessary things
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
@@ -25,7 +25,7 @@ RUN apk add --no-cache \
|
|||||||
# Get rainloop.
|
# Get rainloop.
|
||||||
RUN mkdir -p /var/www/rainloop && \
|
RUN mkdir -p /var/www/rainloop && \
|
||||||
cd /var/www/rainloop && \
|
cd /var/www/rainloop && \
|
||||||
wget https://github.com/RainLoop/rainloop-webmail/releases/download/v1.13.0/rainloop-community-1.13.0.zip && \
|
wget https://github.com/RainLoop/rainloop-webmail/releases/download/v1.16.0/rainloop-community-1.16.0.zip && \
|
||||||
ls -la && \
|
ls -la && \
|
||||||
unzip rainloop-community-*.zip && \
|
unzip rainloop-community-*.zip && \
|
||||||
chown -R nginx:nginx /var/www/rainloop && \
|
chown -R nginx:nginx /var/www/rainloop && \
|
||||||
|
@@ -9,6 +9,8 @@ server {
|
|||||||
autoindex on;
|
autoindex on;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
client_max_body_size 500m;
|
client_max_body_size 500m;
|
||||||
|
# To not cache requests bodys on disk.
|
||||||
|
client_body_buffer_size 16m;
|
||||||
|
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
|
Reference in New Issue
Block a user