docker-scripts/.travis.yml

34 lines
1.5 KiB
YAML
Raw Normal View History

2019-09-25 15:30:48 +03:00
language: bash
2019-09-25 16:18:01 +03:00
os: linux
2019-09-25 15:30:48 +03:00
dist: buster
2019-09-25 15:24:25 +03:00
services:
2019-09-25 16:18:01 +03:00
- docker
2019-09-25 15:24:25 +03:00
addons:
apt:
packages:
2019-09-25 16:18:01 +03:00
- docker-ce
2019-09-25 21:57:48 +03:00
script: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
2019-09-25 15:24:25 +03:00
jobs:
include:
2019-09-25 16:24:34 +03:00
- stage: Base Production image
2019-09-25 21:59:56 +03:00
script: docker build --rm --compress --force-rm -t epicmorg/prod:latest epicmorg/prod && docker push epicmorg/prod:latest
2019-09-25 16:24:34 +03:00
- stage: Base develop image
2019-09-25 16:51:20 +03:00
script: docker build --rm --compress --force-rm -t epicmorg/devel:latest epicmorg/devel
2019-09-25 16:24:34 +03:00
- stage: Nginx image
2019-09-25 21:57:48 +03:00
script: docker build --rm --compress --force-rm -t epicmorg/balancer:latest balancer/latest
2019-09-25 16:24:34 +03:00
- stage: Nginx-php image
2019-09-25 21:57:48 +03:00
script: docker build --rm --compress --force-rm -t epicmorg/balancer:php balancer/php
2019-09-25 16:51:20 +03:00
- stage: TeamCityAgent image
2019-09-25 21:57:48 +03:00
script: docker build --rm --compress --force-rm -t epicmorg/teamcity-agent:latest teamcity-agent
- stage: Jira image
2019-09-25 21:57:48 +03:00
script: docker build --rm --compress --force-rm -t epicmorg/jira:latest jira/latest
- stage: Jira 7.10.0 image
2019-09-25 21:57:48 +03:00
script: docker build --rm --compress --force-rm -t epicmorg/jira:latest jira/7.10.0
- stage: Jira lts image
2019-09-25 21:57:48 +03:00
script: docker build --rm --compress --force-rm -t epicmorg/jira:latest jira/7.13.3
2019-09-25 16:51:20 +03:00
#future migrated builds
2019-09-25 16:24:34 +03:00
# - stage: Confluence image
2019-09-25 21:57:48 +03:00
# script: docker build --rm --compress --force-rm -t epicmorg/confluence:latest confluence/latest
2019-09-25 16:24:34 +03:00
# - stage: Bitbucket image
2019-09-25 21:57:48 +03:00
# script: docker build --rm --compress --force-rm -t epicmorg/bitbucket:latest bitbucket/latest