Update drone CI/CD
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
FyloZ 2021-08-01 11:45:26 -04:00
parent eb03dbb5bd
commit a404863aee
Signed by: william
GPG Key ID: 835378AE9AF4AE97
1 changed files with 3 additions and 5 deletions

View File

@ -3,8 +3,6 @@ name: default
type: docker
environment:
GRADLE_VERSION: 7.1
JDK_VERSION: 11
CRE_VERSION: $DRONE_PULL_REQUEST
CRE_ARTIFACT_NAME: ColorRecipesExplorer-backend-$CRE_VERSION
CRE_REGISTRY_IMAGE: registry.fyloz.dev:5443/colorrecipesexplorer/backend
@ -12,12 +10,12 @@ environment:
steps:
- name: test
image: gradle:$GRADLE_VERSION-jdk$JDK_VERSION
image: gradle:7.1-jdk11
commands:
- gradle test
- name: build
image: gradle:$GRADLE_VERSION-jdk$JDK_VERSION
image: gradle:7.1-jdk11
commands:
- gradle bootJar -Pversion=$CRE_VERSION
- mv build/libs/ColorRecipesExplorer-$CRE_VERSION.jar $CRE_ARTIFACT_NAME
@ -29,7 +27,7 @@ steps:
image: plugins/docker
settings:
build_args:
- JDK_VERSION=$JDK_VERSION
- JDK_VERSION=11
- PORT=$CRE_PORT
- ARTIFACT_NAME=$CRE_ARTIFACT_NAME
repo: $CRE_REGISTRY_IMAGE