This commit is contained in:
FyloZ 2021-12-22 16:26:23 -05:00
parent 546d1f5330
commit c21a763160
Signed by: william
GPG Key ID: 835378AE9AF4AE97
1 changed files with 10 additions and 9 deletions

View File

@ -1,6 +1,6 @@
---
global-variables:
release: &release ${DRONE_BRANCH##**/}
release: &release ${DRONE_TAG}
environment: &environment
JAVA_VERSION: 11
GRADLE_VERSION: 7.1
@ -44,7 +44,8 @@ steps:
commands:
- echo -n "latest-release,$CRE_RELEASE" > .tags
when:
branch: release/**
event:
- tag
- name: containerize-dev
image: plugins/docker
@ -74,7 +75,8 @@ steps:
- CRE_VERSION=${DRONE_BRANCH##**/}
repo: *docker-registry-repo
when:
branch: release/**
event:
- tag
- name: deploy
image: alpine:latest
@ -107,12 +109,11 @@ steps:
- ssh -p $DEPLOY_SERVER_SSH_PORT $DEPLOY_SERVER_USERNAME@$DEPLOY_SERVER "docker pull $CRE_REGISTRY_IMAGE:$CRE_RELEASE"
- 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/data -v $DEPLOY_CONFIG_VOLUME:/usr/bin/config -e spring_profiles_active=$DEPLOY_SPRING_PROFILES $CRE_REGISTRY_IMAGE:$CRE_RELEASE"
when:
branch: release/**
event:
- tag
trigger:
branch:
- develop
- release/**
- master
- develop
event:
- tag