develop #22

Merged
william merged 44 commits from develop into master 2021-12-14 23:59:36 -05:00
1 changed files with 9 additions and 9 deletions
Showing only changes of commit b14d9049b3 - Show all commits

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