mirror of
https://github.com/octoleo/plantuml-server.git
synced 2025-04-04 23:51:51 +00:00
Merge pull request #91 from morotti/buildwar
build the war file with travis.
This commit is contained in:
commit
c5e0c6fdea
43
.travis.yml
43
.travis.yml
@ -2,22 +2,47 @@ language: java
|
|||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
jdk:
|
||||||
|
- openjdk8
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
after_success:
|
stages:
|
||||||
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
- build
|
||||||
- if [ "$TRAVIS_BRANCH" == "master" ]; then
|
- name: docker-push
|
||||||
|
if: branch = master
|
||||||
|
|
||||||
|
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 build --pull -t plantuml/plantuml-server:jetty -f Dockerfile.jetty . ;
|
||||||
docker build --pull -t plantuml/plantuml-server:tomcat -f Dockerfile.tomcat . ;
|
|
||||||
docker tag plantuml/plantuml-server:jetty plantuml/plantuml-server:latest ;
|
docker tag plantuml/plantuml-server:jetty plantuml/plantuml-server:latest ;
|
||||||
|
|
||||||
docker push plantuml/plantuml-server:tomcat;
|
|
||||||
docker push plantuml/plantuml-server:jetty;
|
docker push plantuml/plantuml-server:jetty;
|
||||||
docker push plantuml/plantuml-server:latest;
|
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 build --pull -t plantuml/plantuml-server:armv8a -f Dockerfile.armv8a . ;
|
||||||
docker push plantuml/plantuml-server:armv8a;
|
docker push plantuml/plantuml-server:armv8a;
|
||||||
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user