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