Update pipeline

This commit is contained in:
Mike 2020-05-04 18:55:48 +02:00
parent 47f257f9ba
commit 9762d41aae

View File

@ -2,7 +2,6 @@ image: maven:latest
stages:
- build
- deploy
build:
stage: build
@ -11,34 +10,8 @@ build:
only:
changes:
- src/**/*
- pom.xml
artifacts:
expire_in: 2 weeks
paths:
- target/Habbo-*.jar
.notify_builder: &notify_builder
stage: deploy
trigger:
project: project-dobby/builder
strategy: depend
notify_deploy_release:
<<: *notify_builder
variables:
UPSTREAM_DECISION: "tag"
UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
UPSTREAM_PROJECT: $CI_PROJECT_PATH
UPSTREAM_BRANCH: $CI_COMMIT_TAG
only:
- tags
notify_deploy_dev:
<<: *notify_builder
variables:
UPSTREAM_DECISION: "dev"
UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
UPSTREAM_PROJECT: $CI_PROJECT_PATH
UPSTREAM_BRANCH: "dev"
only:
- dev