Initial commit 🚀
All checks were successful
Build and publish release / build-docker (push) Successful in 4s

This commit is contained in:
Tulis
2025-07-27 13:35:39 +02:00
commit b10c8b4417
7 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,27 @@
name: Build and publish release
on:
push:
branches:
- main
schedule:
- cron: '*/15 * * * *'
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Maven
run: |
version=$(curl -s https://hub.spigotmc.org/versions/ | \
grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.json' | \
sort -V | \
tail -n 1 | \
sed 's/\.json$//')
- name: Download Java 21
run: |
echo $version

10
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,10 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Environment-dependent path to Maven home directory
/mavenHomeManager.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

6
.idea/misc.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/TuliBuilder.iml" filepath="$PROJECT_DIR$/TuliBuilder.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

28
Dockerfile Normal file
View File

@ -0,0 +1,28 @@
FROM eclipse-temurin:21-jdk AS builder
ARG MINECRAFT_VERSION
ARG ENABLE_FLAG=false
RUN echo $MINECRAFT_VERSION
RUN mkdir /code /buildTools
RUN apt-get update && apt-get install -y maven openjdk-21-jdk wget git
WORKDIR /buildTools
RUN wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
RUN java -jar BuildTools.jar --rev $MINECRAFT_VERSION
RUN wget -O maven.tar.gz https://dlcdn.apache.org/maven/maven-3/3.9.11/binaries/apache-maven-3.9.11-bin.tar.gz
WORKDIR /code
FROM eclipse-temurin:21-alpine
# Kopiowanie spigot-api repozytorium
COPY --from=builder /root/.m2/repository/org/spigotmc/spigot-api /root/.m2/repository/org/spigotmc/spigot-api
COPY --from=builder /buildTools/maven.tar.gz /root/maven.tar.gz
RUN tar -xzf /root/maven.tar.gz -C /root/ && rm /root/maven.tar.gz
RUN mkdir /code
WORKDIR /code
ENTRYPOINT ["/root/apache-maven-3.9.11/bin/mvn", "package"]

8
TuliBuilder.iml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="GENERAL_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>