docker-scripts/.travis.yml

65 lines
2.3 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 15:24:25 +03:00
jobs:
include:
2019-09-25 16:24:34 +03:00
- stage: Base Production image
2019-09-25 23:00:25 +03:00
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -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 23:00:25 +03:00
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/devel:latest epicmorg/devel
- docker push epicmorg/devel:latest
2019-09-25 16:24:34 +03:00
- stage: Nginx image
2019-09-25 23:00:25 +03:00
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/balancer:latest balancer/latest
- docker push epicmorg/balancer:latest
2019-09-25 16:24:34 +03:00
- stage: Nginx-php image
2019-09-25 23:00:25 +03:00
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/balancer:php balancer/php
2019-09-25 23:57:45 +03:00
- docker push epicmorg/balancer:php
2019-09-25 23:00:25 +03:00
2019-09-25 16:51:20 +03:00
- stage: TeamCityAgent image
2019-09-25 23:00:25 +03:00
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/teamcity-agent:latest teamcity-agent
- docker push epicmorg/teamcity-agent:latest
- stage: Jira image
2019-09-25 23:00:25 +03:00
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/jira:latest jira/latest
- docker push epicmorg/jira:latest
- stage: Jira 7.10.0 image
2019-09-25 23:00:25 +03:00
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/jira:7.10.0 jira/7.10.0
- docker push epicmorg/jira:7.10.0
- stage: Jira lts image
2019-09-25 23:00:25 +03:00
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --compress -t epicmorg/jira:7.13.3 jira/7.13.3
- docker push epicmorg/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 23:00:25 +03:00
# script: docker build --compress -t epicmorg/confluence:latest confluence/latest
2019-09-25 16:24:34 +03:00
# - stage: Bitbucket image
2019-09-25 23:00:25 +03:00
# script: docker build --compress -t epicmorg/bitbucket:latest bitbucket/latest