lets hope this works
This commit is contained in:
parent
ad82dbd409
commit
f8881deb66
25
.github/workflows/root.yml
vendored
25
.github/workflows/root.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
|
|
||||||
with:
|
with:
|
||||||
java-version: 17
|
java-version: 21
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
|
|
||||||
- name: Gradle (Setup)
|
- name: Gradle (Setup)
|
||||||
@ -41,3 +41,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: JARs
|
name: JARs
|
||||||
path: build/libs/*.jar
|
path: build/libs/*.jar
|
||||||
|
|
||||||
|
- name: Login to DigitalOcean Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
|
||||||
|
with:
|
||||||
|
registry: registry.digitalocean.com
|
||||||
|
username: ${{ secrets.DOMAIL }}
|
||||||
|
password: ${{ secrets.DOKEY }}
|
||||||
|
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: docker build -t registry.digitalocean.com/jansel/feixiao:latest -t registry.digitalocean.com/jansel/feixiao:${{ steps.date.outputs.date }} .
|
||||||
|
|
||||||
|
- name: Push the Docker image related to this workflow
|
||||||
|
run: docker push registry.digitalocean.com/jansel/feixiao:${{ steps.date.outputs.date }}
|
||||||
|
|
||||||
|
- name: Push the latest Docker image
|
||||||
|
run: docker push registry.digitalocean.com/jansel/feixiao:latest
|
||||||
|
|
||||||
|
- name: Remove the Docker image
|
||||||
|
run: docker rmi registry.digitalocean.com/jansel/feixiao:${{ steps.date.outputs.date }}
|
||||||
|
|
||||||
|
- name: Force remove the latest Docker image
|
||||||
|
run: docker rmi registry.digitalocean.com/jansel/feixiao:latest --force
|
||||||
|
10
Dockerfile
10
Dockerfile
@ -13,17 +13,17 @@ VOLUME [ "/bot/data" ]
|
|||||||
VOLUME [ "/bot/plugins" ]
|
VOLUME [ "/bot/plugins" ]
|
||||||
|
|
||||||
# Copy the distribution files into the container
|
# Copy the distribution files into the container
|
||||||
COPY [ "build/distributions/template-1.0-SNAPSHOT.tar", "/dist" ]
|
COPY [ "build/distributions/aglaea-7.2.7.tar", "/dist" ]
|
||||||
|
|
||||||
# Extract the distribution files, and prepare them for use
|
# Extract the distribution files, and prepare them for use
|
||||||
RUN tar -xf /dist/template-1.0-SNAPSHOT.tar -C /dist/out
|
RUN tar -xf /dist/aglaea-7.2.7.tar -C /dist/out
|
||||||
RUN chmod +x /dist/out/template-1.0-SNAPSHOT/bin/template
|
RUN chmod +x /dist/out/aglaea-7.2.7/bin/aglaea
|
||||||
|
|
||||||
# Clean up unnecessary files
|
# Clean up unnecessary files
|
||||||
RUN rm /dist/template-1.0-SNAPSHOT.tar
|
RUN rm /dist/aglaea-7.2.7.tar
|
||||||
|
|
||||||
# Set the correct working directory
|
# Set the correct working directory
|
||||||
WORKDIR /bot
|
WORKDIR /bot
|
||||||
|
|
||||||
# Run the distribution start script
|
# Run the distribution start script
|
||||||
ENTRYPOINT [ "/dist/out/template-1.0-SNAPSHOT/bin/template" ]
|
ENTRYPOINT [ "/dist/out/aglaea-7.2.7/bin/aglaea" ]
|
||||||
|
@ -14,13 +14,15 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "dev.jansel.aglaea"
|
group = "dev.jansel.aglaea"
|
||||||
version = "1.0-SNAPSHOT"
|
version = "7.2.7"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
detektPlugins(libs.detekt)
|
detektPlugins(libs.detekt)
|
||||||
|
|
||||||
implementation(libs.kotlin.stdlib)
|
implementation(libs.kotlin.stdlib)
|
||||||
implementation(libs.kx.ser)
|
implementation(libs.kx.ser)
|
||||||
|
implementation(libs.twitch4j)
|
||||||
|
implementation(libs.events4j)
|
||||||
|
|
||||||
// Logging dependencies
|
// Logging dependencies
|
||||||
implementation(libs.groovy)
|
implementation(libs.groovy)
|
||||||
|
@ -10,6 +10,9 @@ logback-groovy = "1.14.5"
|
|||||||
logging = "7.0.3"
|
logging = "7.0.3"
|
||||||
kordex-gradle = "1.7.0"
|
kordex-gradle = "1.7.0"
|
||||||
kordex = "2.3.1-SNAPSHOT"
|
kordex = "2.3.1-SNAPSHOT"
|
||||||
|
twitch4j = "1.24.0"
|
||||||
|
events4j = "0.12.2"
|
||||||
|
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
detekt = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "detekt" }
|
detekt = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "detekt" }
|
||||||
@ -20,6 +23,9 @@ kx-ser = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.
|
|||||||
logback = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
|
logback = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
|
||||||
logback-groovy = { module = "io.github.virtualdogbert:logback-groovy-config", version.ref = "logback-groovy" }
|
logback-groovy = { module = "io.github.virtualdogbert:logback-groovy-config", version.ref = "logback-groovy" }
|
||||||
logging = { module = "io.github.oshai:kotlin-logging", version.ref = "logging" }
|
logging = { module = "io.github.oshai:kotlin-logging", version.ref = "logging" }
|
||||||
|
twitch4j = { module = "com.github.twitch4j:twitch4j", version.ref = "twitch4j" }
|
||||||
|
events4j = { module = "com.github.philippheuer.events4j:events4j-handler-reactor", version.ref = "events4j" }
|
||||||
|
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
|
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
|
||||||
|
@ -8,4 +8,4 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = "template"
|
rootProject.name = "aglaea"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user