Update CI/CD
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
18415059c6
commit
eccafe145b
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
global-variables:
|
global-variables:
|
||||||
release: &release ${DRONE_BRANCH##/**}
|
release: &release ${DRONE_BRANCH##**/}
|
||||||
environment: &environment
|
environment: &environment
|
||||||
CRE_REGISTRY_IMAGE: registry.fyloz.dev:5443/colorrecipesexplorer/frontend
|
CRE_REGISTRY_IMAGE: registry.fyloz.dev:5443/colorrecipesexplorer/frontend
|
||||||
CRE_PORT: 9102
|
CRE_PORT: 9102
|
||||||
|
@ -31,7 +31,7 @@ steps:
|
||||||
when:
|
when:
|
||||||
branch: release/**
|
branch: release/**
|
||||||
|
|
||||||
- name: containerize-dev
|
- name: containerize
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
environment:
|
environment:
|
||||||
<<: *environment
|
<<: *environment
|
||||||
|
@ -55,7 +55,7 @@ steps:
|
||||||
from_secret: deploy_server_ssh_port
|
from_secret: deploy_server_ssh_port
|
||||||
DEPLOY_SERVER_SSH_KEY:
|
DEPLOY_SERVER_SSH_KEY:
|
||||||
from_secret: deploy_server_ssh_key
|
from_secret: deploy_server_ssh_key
|
||||||
DEPLOY_CONTAINER_NAME: cre_frontend-${DRONE_BRANCH}
|
DEPLOY_CONTAINER_NAME: cre_frontend
|
||||||
commands:
|
commands:
|
||||||
- apk update
|
- apk update
|
||||||
- apk add --no-cache openssh-client
|
- apk add --no-cache openssh-client
|
||||||
|
@ -71,7 +71,9 @@ steps:
|
||||||
- ssh -p $DEPLOY_SERVER_SSH_PORT $DEPLOY_SERVER_USERNAME@$DEPLOY_SERVER "docker run -d -p $CRE_PORT:80 --name=$DEPLOY_CONTAINER_NAME $CRE_REGISTRY_IMAGE:$CRE_RELEASE"
|
- ssh -p $DEPLOY_SERVER_SSH_PORT $DEPLOY_SERVER_USERNAME@$DEPLOY_SERVER "docker run -d -p $CRE_PORT:80 --name=$DEPLOY_CONTAINER_NAME $CRE_REGISTRY_IMAGE:$CRE_RELEASE"
|
||||||
when:
|
when:
|
||||||
branch: release/**
|
branch: release/**
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- develop
|
- develop
|
||||||
|
- release/**
|
||||||
- master
|
- master
|
||||||
|
|
Loading…
Reference in New Issue