From 5758721ab979338a3f526f86f0529cb63b829c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Mon, 6 Apr 2020 01:07:44 +0200 Subject: [PATCH] rework drone pipeline --- .drone.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 716c6e4..3edcf4c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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" .