Replaced travis by drone (#7)

Replace travis by drone
This commit is contained in:
Eugene Zadyra
2018-12-10 22:38:47 +01:00
committed by GitHub
parent c9369443a7
commit 7e9433cf3e
4 changed files with 25 additions and 3 deletions

22
.drone.yml Normal file
View File

@@ -0,0 +1,22 @@
pipeline:
build:
image: java:openjdk-8
environment:
- GRADLE_USER_HOME=~/.gradle
commands:
- ./gradlew test
- ./gradlew prepare
- echo -n "1.0.$DRONE_BUILD_NUMBER,latest" > .tags
publish:
image: plugins/docker
repo: eugenezadyra/luxmed-bot
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: ./docker/Dockerfile
context: ./docker/
when:
branch: master
event: push

View File

@@ -1 +0,0 @@
language: java

View File

@@ -1,6 +1,7 @@
# Luxmed Booking Service # Luxmed Booking Service
[![Build Status](https://travis-ci.org/dyrkin/luxmed-booking-service.svg?branch=master)](https://travis-ci.org/dyrkin/luxmed-booking-service) [![Build Status](https://cloud.drone.io/api/badges/dyrkin/luxmed-booking-service/status.svg?branch=master)](https://cloud.drone.io/dyrkin/luxmed-booking-service)
[![Docker Hub](https://img.shields.io/badge/image-latest-blue.svg?logo=docker&style=flat)](https://hub.docker.com/r/eugenezadyra/luxmed-bot/tags/)
Non official Telegram bot for **Portal Pacjenta LUX MED**. Non official Telegram bot for **Portal Pacjenta LUX MED**.

View File

@@ -1,7 +1,7 @@
version: '3.4' version: '3.4'
services: services:
luxmedbookingservice: luxmedbookingservice:
image: eugenezadyra/luxmed-bot:1.0.2 image: eugenezadyra/luxmed-bot:latest
environment: environment:
DB_HOST: "database" DB_HOST: "database"
volumes: volumes: