Update drone CI/CD
This commit is contained in:
parent
eb03dbb5bd
commit
a404863aee
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue