mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40:52 +01:00
49 lines
768 B
YAML
49 lines
768 B
YAML
image: maven:latest
|
|
|
|
stages:
|
|
- build
|
|
- deploy
|
|
|
|
cache:
|
|
paths:
|
|
- target/
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- mvn package
|
|
only:
|
|
- dev
|
|
- master
|
|
artifacts:
|
|
paths:
|
|
- target/Habbo-*.jar
|
|
|
|
|
|
.notify_builder: ¬ify_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
|
|
|