Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
language: java
sudo: required
install: true
services:
- docker
addons:
sonarcloud:
organization: "gustavomcarmo-github"
jdk:
- oraclejdk8
script:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
- docker build --tag=esignbr/logistics .
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
after_success:
- "curl -T logistics-ear/target/logistics-ear-1.0-SNAPSHOT.ear -u $FTP_USER:$FTP_PASSWORD ftp://esign.com.br/appservers/wildfly-10.0.0.Final/standalone/deployments/"
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker push esignbr/logistics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment