This commit is contained in:
parent
10ba62c792
commit
5758721ab9
@ -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" .
|
||||
|
Loading…
Reference in New Issue
Block a user