diff --git a/.gitea/workflows/auto-build.yaml b/.gitea/workflows/auto-build.yaml
new file mode 100644
index 0000000..6348e12
--- /dev/null
+++ b/.gitea/workflows/auto-build.yaml
@@ -0,0 +1,23 @@
+name: Auto-build
+run-name: Automatic-Packaging 📦
+on: [ push ]
+env:
+ BARE_REPO_DIR: https://git.alina-dace.info/Dace/Animo-Server.git
+ CLONED_REPO_DIR: ./
+jobs:
+ Automatic-Packaging:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Git Repo
+ uses: https://git.alina-dace.info/actions/checkout@v4
+ - run: pwd
+ - name: Set up JDK 17
+ uses: https://git.alina-dace.info/actions/setup-java@v4
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ cache: maven
+ - run: chmod +x ./mvnw
+ - name: build
+ run: ./mvnw clean package -DskipTests=true -P prod
+ - run: docker build -t animo-server:latest ./
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..f3bd48a
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+FROM bellsoft/liberica-openjdk-debian:17.0.11-cds
+
+LABEL maintainer="Kane / Arina Dace / Sakura Reimi"
+
+ENV LANG C.UTF-8
+ENV LC_ALL C.UTF-8
+
+ADD ./target/animo.jar /app.jar
+
+ENTRYPOINT exec java -jar /app.jar
diff --git a/pom.xml b/pom.xml
index bd2b91f..8b662dc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,6 +26,23 @@
+
+
+ dev
+
+ dev
+
+
+ true
+
+
+
+ prod
+
+ prod
+
+
+
17
@@ -41,12 +58,6 @@
runtime
true
-
-
-
-
-
-
com.mysql
mysql-connector-j
@@ -91,6 +102,9 @@
+ ${project.artifactId}
+ ${project.basedir}/src/main/java
+ ${project.basedir}/src/test/java
org.apache.maven.plugins
@@ -117,6 +131,24 @@
+
+
+ src/main/resources
+
+ false
+
+
+ src/main/resources
+
+
+ application*
+ bootstrap*
+ banner*
+
+
+ true
+
+
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 351091e..a05bef8 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -3,7 +3,7 @@ server:
spring:
profiles:
- active: dev
+ active: @spring.profiles.active@
application:
name: Animo