Arcturus-Community/.gitlab-ci.yml

49 lines
768 B
YAML
Raw Normal View History

2020-01-25 17:21:40 +01:00
image: maven:latest
2020-04-25 11:04:48 +02:00
stages:
- build
- deploy
2020-01-25 17:21:40 +01:00
cache:
paths:
- target/
2020-01-25 19:05:12 +01:00
build:
2020-04-25 11:04:48 +02:00
stage: build
2020-01-25 17:21:40 +01:00
script:
- mvn package
only:
- dev
2020-01-25 19:05:12 +01:00
- master
2020-01-25 17:21:40 +01:00
artifacts:
paths:
2020-04-25 11:04:48 +02:00
- 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