Multiple bug fixes #23
19
.drone.yml
19
.drone.yml
|
@ -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
|
Loading…
Reference in New Issue