forked from MinecraftUtilities/Backend
ci
This commit is contained in:
parent
0819b228ba
commit
725fe734c3
21
.gitea/workflows/ci.yml
Normal file
21
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: "deploy"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Cloning repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Push to dokku
|
||||||
|
uses: dokku/github-action@master
|
||||||
|
with:
|
||||||
|
git_remote_url: "ssh://dokku@10.0.3.39:22/minecraft-helper"
|
||||||
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM fascinated/docker-images:java_17
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
maven \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN mvn clean package
|
||||||
|
|
||||||
|
CMD ["java", "-jar", "target/Minecraft-Helper-1.0-SNAPSHOT.jar"]
|
1
pom.xml
1
pom.xml
@ -61,6 +61,7 @@
|
|||||||
<groupId>net.jodah</groupId>
|
<groupId>net.jodah</groupId>
|
||||||
<artifactId>expiringmap</artifactId>
|
<artifactId>expiringmap</artifactId>
|
||||||
<version>0.5.11</version>
|
<version>0.5.11</version>
|
||||||
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@ import java.util.concurrent.TimeUnit;
|
|||||||
@Service @Log4j2
|
@Service @Log4j2
|
||||||
public class PlayerManagerService {
|
public class PlayerManagerService {
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(PlayerManagerService.class);
|
|
||||||
/**
|
/**
|
||||||
* The cache of players.
|
* The cache of players.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user