mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
Tavis-ci to upload images to the Docker hub, after succesfull tests.
For this to work, the following variables will need to be set at Docker hub: - DOCKER_ORG first part of docker repo name (example: mailu) - DOCKER_UN Docker-hub login username (private) - DOCKER_PW Docker-hub login password (private) Note that also Docker hub autobuilds will have to be disabled.
This commit is contained in:
parent
20f37607bb
commit
5987703631
@ -11,3 +11,7 @@ script:
|
|||||||
- docker-compose -f tests/build.yml -p Mailu build
|
- docker-compose -f tests/build.yml -p Mailu build
|
||||||
- tests/compose/test-script.sh
|
- tests/compose/test-script.sh
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
provider: script
|
||||||
|
script: bash tests/deploy.sh
|
||||||
|
|
||||||
|
@ -3,45 +3,45 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
front:
|
front:
|
||||||
image: mailu/nginx:$VERSION
|
image: $DOCKER_ORG/nginx:$VERSION
|
||||||
build: ../core/nginx
|
build: ../core/nginx
|
||||||
|
|
||||||
imap:
|
imap:
|
||||||
image: mailu/dovecot:$VERSION
|
image: $DOCKER_ORG/dovecot:$VERSION
|
||||||
build: ../core/dovecot
|
build: ../core/dovecot
|
||||||
|
|
||||||
smtp:
|
smtp:
|
||||||
image: mailu/postfix:$VERSION
|
image: $DOCKER_ORG/postfix:$VERSION
|
||||||
build: ../core/postfix
|
build: ../core/postfix
|
||||||
|
|
||||||
antispam:
|
antispam:
|
||||||
image: mailu/rspamd:$VERSION
|
image: $DOCKER_ORG/rspamd:$VERSION
|
||||||
build: ../services/rspamd
|
build: ../services/rspamd
|
||||||
|
|
||||||
antivirus:
|
antivirus:
|
||||||
image: mailu/clamav:$VERSION
|
image: $DOCKER_ORG/clamav:$VERSION
|
||||||
build: ../optional/clamav
|
build: ../optional/clamav
|
||||||
|
|
||||||
webdav:
|
webdav:
|
||||||
image: mailu/radicale:$VERSION
|
image: $DOCKER_ORG/radicale:$VERSION
|
||||||
build: ../optional/radicale
|
build: ../optional/radicale
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
image: mailu/admin:$VERSION
|
image: $DOCKER_ORG/admin:$VERSION
|
||||||
build: ../core/admin
|
build: ../core/admin
|
||||||
|
|
||||||
roundcube:
|
roundcube:
|
||||||
image: mailu/roundcube:$VERSION
|
image: $DOCKER_ORG/roundcube:$VERSION
|
||||||
build: ../webmails/roundcube
|
build: ../webmails/roundcube
|
||||||
|
|
||||||
rainloop:
|
rainloop:
|
||||||
image: mailu/rainloop:$VERSION
|
image: $DOCKER_ORG/rainloop:$VERSION
|
||||||
build: ../webmails/rainloop
|
build: ../webmails/rainloop
|
||||||
|
|
||||||
fetchmail:
|
fetchmail:
|
||||||
image: mailu/fetchmail:$VERSION
|
image: $DOCKER_ORG/fetchmail:$VERSION
|
||||||
build: ../services/fetchmail
|
build: ../services/fetchmail
|
||||||
|
|
||||||
none:
|
none:
|
||||||
image: mailu/none:$VERSION
|
image: $DOCKER_ORG/none:$VERSION
|
||||||
build: ../core/none
|
build: ../core/none
|
||||||
|
4
tests/deploy.sh
Executable file
4
tests/deploy.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker login -u $DOCKER_UN -p $DOCKER_PW
|
||||||
|
docker-compose -f tests/build.yml push
|
Loading…
Reference in New Issue
Block a user