2017-04-25 12:52:01 +00:00
|
|
|
language: java
|
|
|
|
|
|
|
|
sudo: required
|
|
|
|
|
2019-03-30 23:45:15 +00:00
|
|
|
jdk:
|
|
|
|
- openjdk8
|
|
|
|
|
2017-04-25 12:52:01 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2019-03-30 23:45:15 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- name: docker-push
|
|
|
|
if: branch = master
|
2017-10-20 18:21:16 +00:00
|
|
|
|
2019-03-30 23:45:15 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: build
|
|
|
|
name: war
|
|
|
|
script: mvn --batch-mode --define java.net.useSystemProxies=true package
|
|
|
|
before_deploy: cp target/plantuml.war target/plantuml-${TRAVIS_BRANCH}.war
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: "$GITHUB_TOKEN"
|
|
|
|
file: "target/plantuml-${TRAVIS_BRANCH}.war"
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
- stage: docker-push
|
|
|
|
name: jetty
|
|
|
|
script: >
|
|
|
|
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
|
|
|
docker build --pull -t plantuml/plantuml-server:jetty -f Dockerfile.jetty . ;
|
|
|
|
docker tag plantuml/plantuml-server:jetty plantuml/plantuml-server:latest ;
|
|
|
|
docker push plantuml/plantuml-server:jetty;
|
|
|
|
docker push plantuml/plantuml-server:latest;
|
|
|
|
- stage: docker-push
|
|
|
|
name: tomcat
|
|
|
|
script: >
|
|
|
|
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
|
|
|
docker build --pull -t plantuml/plantuml-server:tomcat -f Dockerfile.tomcat . ;
|
|
|
|
docker push plantuml/plantuml-server:tomcat;
|
|
|
|
- stage: docker-push
|
|
|
|
name: armv8a
|
|
|
|
script: >
|
|
|
|
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
|
|
|
docker build --pull -t plantuml/plantuml-server:armv8a -f Dockerfile.armv8a . ;
|
|
|
|
docker push plantuml/plantuml-server:armv8a;
|