mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-22 04:37:42 +01:00
Deployment
This commit is contained in:
parent
d14edbfeb8
commit
a793b80211
@ -1,33 +0,0 @@
|
||||
image: maven:3-openjdk-16-slim
|
||||
|
||||
variables:
|
||||
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
|
||||
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
|
||||
|
||||
before_script:
|
||||
- apt-get update -qq
|
||||
# Setup SSH deploy keys
|
||||
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
|
||||
- eval $(ssh-agent -s)
|
||||
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
||||
- mkdir -p ~/.ssh
|
||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- .m2/repository/
|
||||
- target/
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- mvn $MAVEN_CLI_OPTS clean package
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
script:
|
||||
- mvn $MAVEN_CLI_OPTS deploy
|
||||
- ssh builder@proxy.mythiccraft.io -p 2222 "mkdir -p /tmp/builds/$CI_JOB_ID && exit"
|
||||
- scp -rp -o StrictHostKeyChecking=no -o Port=2222 ./target/ builder@proxy.mythiccraft.io:/tmp/builds/$CI_JOB_ID/
|
||||
only:
|
||||
- master
|
@ -1,14 +0,0 @@
|
||||
<settings>
|
||||
<servers>
|
||||
<server>
|
||||
<id>nexus</id>
|
||||
<username>${env.M2_REPO_USER}</username>
|
||||
<password>${env.M2_REPO_PASS}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>lumine</id>
|
||||
<username>${env.M2_REPO_USER}</username>
|
||||
<password>${env.M2_REPO_PASS}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
@ -30,6 +30,9 @@ import java.util.*;
|
||||
public class PlayerListener implements Listener {
|
||||
private final Map<Player, List<ItemStack>> deathItems = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Careful, MMOCore and MMOMana runs on LOWEST
|
||||
*/
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
public void loadPlayerData(PlayerJoinEvent event) {
|
||||
MMOItems.plugin.getRecipes().refreshRecipeBook(event.getPlayer());
|
||||
|
17
pom.xml
17
pom.xml
@ -35,6 +35,22 @@
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<!-- Deployment -->
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>phoenixdevt-releases</id>
|
||||
<name>PhoenixDevt Releases</name>
|
||||
<url>https://nexus.phoenixdevt.fr/repository/maven-releases/</url>
|
||||
</repository>
|
||||
|
||||
<snapshotRepository>
|
||||
<id>phoenixdevt-snapshots</id>
|
||||
<name>PhoenixDevt Snapshots</name>
|
||||
<url>https://nexus.phoenixdevt.fr/repository/maven-snapshots/</url>
|
||||
</snapshotRepository>
|
||||
|
||||
</distributionManagement>
|
||||
|
||||
<!-- Dependencies -->
|
||||
<dependencies>
|
||||
<!-- MythicLib -->
|
||||
@ -53,7 +69,6 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
<!-- Build -->
|
||||
<build>
|
||||
<plugins>
|
||||
|
Loading…
Reference in New Issue
Block a user