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

This commit is contained in:
FyloZ 2021-08-04 21:34:18 -04:00
parent ecf0885ca2
commit b14d9049b3
Signed by: william
GPG Key ID: 835378AE9AF4AE97
1 changed files with 9 additions and 9 deletions

View File

@ -13,6 +13,9 @@ steps:
image: gradle:7.1-jdk11
commands:
- gradle test
when:
branch: develop
events: push
- name: build
image: gradle:7.1-jdk11
@ -21,9 +24,8 @@ steps:
- mv build/libs/ColorRecipesExplorer-$CRE_VERSION.jar $CRE_ARTIFACT_NAME.jar
- echo -n "latest,$CRE_VERSION" > .tags
when:
branch:
- master
events: [ push, tag ]
branch: master
events: push
- name: containerize
image: plugins/docker
@ -32,9 +34,8 @@ steps:
- JAVA_VERSION=11
repo: registry.fyloz.dev:5443/colorrecipesexplorer/backend
when:
branch:
- master
events: [ push, tag ]
branch: master
events: push
- name: deploy
image: alpine:latest
@ -65,8 +66,7 @@ steps:
- ssh -p $DEPLOY_SERVER_SSH_PORT $DEPLOY_SERVER_USERNAME@$DEPLOY_SERVER "docker pull $CRE_REGISTRY_IMAGE:latest"
- ssh -p $DEPLOY_SERVER_SSH_PORT $DEPLOY_SERVER_USERNAME@$DEPLOY_SERVER "docker run -d -p $CRE_PORT:9090 --name=$DEPLOY_CONTAINER_NAME -v $DEPLOY_DATA_VOLUME:/usr/bin/cre/data -v $DEPLOY_CONFIG_VOLUME:/usr/bin/cre/config -e spring_profiles_active=$DEPLOY_SPRING_PROFILES $CRE_REGISTRY_IMAGE"
when:
branch:
- master
events: [ push, tag ]
branch: master
events: push