rework drone pipeline
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2020-04-06 01:07:44 +02:00
parent 10ba62c792
commit 5758721ab9
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 2 additions and 3 deletions

View File

@ -3,12 +3,12 @@ type: docker
name: default
steps:
- name: test
- name: build_application
image: openjdk:8-jdk
commands:
- ./gradlew build -x test
- name: build
- name: build_container
image: docker:stable-dind
volumes:
- name: dockersock
@ -19,7 +19,6 @@ steps:
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
commands:
- ./gradlew build -x test
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
- docker build -t="registry.kmlabz.com/$DOCKER_USERNAME/$DRONE_REPO_NAME" .
- docker build -t="registry.kmlabz.com/$DOCKER_USERNAME/$DRONE_REPO_NAME:$DRONE_BUILD_NUMBER" .