Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Latest commit

 

History

History
29 lines (23 loc) · 1.02 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.02 KB

Template-Docker

Docker link : https://hub.docker.com/r/topinambours/template-docker

docker pull topinambours/template-docker
docker run topinambours/template-docker

To deploy with travis :

language: java
sudo: false

jdk:
  - openjdk10

jobs:
  include:
    - stage: test
      script:
        - mvn test
    - stage : deploy
      script :
        - docker build -t topinambours/template-docker .
        - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
        - docker push topinambours/template-docker:latest

Travis-Ci Environment Variables : DOCKER_USERNAME , DOCKER_PASSWORD