Compare commits
1 Commits
v4.2.3
...
37e0c49a3e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37e0c49a3e |
@@ -3,8 +3,8 @@ name: Production deployment
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
IMAGE_NAME: "jdrbot"
|
||||
@@ -17,14 +17,7 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Check out repo's default branch
|
||||
uses: actions/checkout@v4
|
||||
- name: Getting version
|
||||
uses: https://gitea.skydust.fr/actions/get-version@main
|
||||
- name: Update java package version
|
||||
run: |
|
||||
log_info "Updating gradle.properties version to $(yellow)$NEW_VERSION"
|
||||
sed -Ei "s|^(version=).*|\1${NEW_VERSION}|" gradle.properties
|
||||
cat gradle.properties
|
||||
uses: actions/checkout@v3
|
||||
- name: Docker login
|
||||
uses: https://gitea.skydust.fr/actions/docker-login-skydust@main
|
||||
with:
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
semver:
|
||||
type: choice
|
||||
description: Choose the semver
|
||||
options:
|
||||
- "Major - Incompatible API changes"
|
||||
- "Minor - Adding functionality in a backward compatible manner"
|
||||
- "Patch - Backward compatible bug fixes"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: skydust-runner
|
||||
steps:
|
||||
- name: Release
|
||||
uses: https://gitea.skydust.fr/actions/create-release@main
|
||||
with:
|
||||
semver: ${{ inputs.semver }}
|
||||
token: ${{ secrets.CI_GIT_WRITE_TOKEN }}
|
||||
@@ -1,17 +1,15 @@
|
||||
FROM public.ecr.aws/docker/library/eclipse-temurin:23.0.1_11-jdk AS builder
|
||||
FROM public.ecr.aws/docker/library/eclipse-temurin:20.0.2_9-jdk AS builder
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
RUN ./gradlew shadowJar
|
||||
|
||||
FROM public.ecr.aws/docker/library/eclipse-temurin:23.0.1_11-jre AS runner
|
||||
FROM public.ecr.aws/docker/library/eclipse-temurin:20.0.2_9-jre AS runner
|
||||
LABEL authors="skydust"
|
||||
WORKDIR /app
|
||||
|
||||
RUN wget https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.2+ubuntu24.04_all.deb
|
||||
RUN dpkg -i zabbix-release_latest_7.2+ubuntu24.04_all.deb && rm zabbix-release_latest_7.2+ubuntu24.04_all.deb
|
||||
RUN apt update && apt install -y zabbix-sender && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /app/build/libs/JdrBot.jar /app/JdrBot.jar
|
||||
COPY start.sh /app
|
||||
|
||||
CMD ["/bin/bash","./start.sh"]
|
||||
CMD ["/bin/bash","./start.sh"]
|
||||
@@ -26,16 +26,16 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'net.lingala.zip4j:zip4j:2.11.5'
|
||||
implementation 'net.lingala.zip4j:zip4j:2.10.0'
|
||||
implementation 'club.minnced:opus-java:1.1.1'
|
||||
implementation 'ws.schild:jave-all-deps:3.5.0'
|
||||
implementation 'com.google.guava:guava:31.1-jre'
|
||||
implementation 'com.github.oshi:oshi-core:6.6.5'
|
||||
implementation 'com.github.oshi:oshi-json:3.13.6'
|
||||
implementation 'org.slf4j:slf4j-simple:2.0.16'
|
||||
implementation 'org.apache.commons:commons-lang3:3.17.0'
|
||||
implementation 'org.apache.commons:commons-lang3:3.12.0'
|
||||
implementation 'dev.arbjerg:lavaplayer:2.2.2'
|
||||
implementation 'net.dv8tion:JDA:5.2.2'
|
||||
implementation 'net.dv8tion:JDA:5.0.0-beta.13'
|
||||
implementation 'org.reflections:reflections:0.10.2'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user