Compare commits
6 Commits
d81eea7a6b
...
v4.2.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e49b098da | ||
| c89e740e02 | |||
| 9b82cb2823 | |||
| b1608ee414 | |||
|
|
329435f68f | ||
|
|
3fa6425e99 |
@@ -3,8 +3,8 @@ name: Production deployment
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- master
|
- 'v*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: "jdrbot"
|
IMAGE_NAME: "jdrbot"
|
||||||
@@ -17,7 +17,14 @@ jobs:
|
|||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo's default branch
|
- name: Check out repo's default branch
|
||||||
uses: actions/checkout@v3
|
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
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
uses: https://gitea.skydust.fr/actions/docker-login-skydust@main
|
uses: https://gitea.skydust.fr/actions/docker-login-skydust@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
23
.gitea/workflows/release.yml
Normal file
23
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
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,15 +1,17 @@
|
|||||||
FROM public.ecr.aws/docker/library/eclipse-temurin:20.0.2_9-jdk AS builder
|
FROM public.ecr.aws/docker/library/eclipse-temurin:23.0.1_11-jdk AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN ./gradlew shadowJar
|
RUN ./gradlew shadowJar
|
||||||
|
|
||||||
FROM public.ecr.aws/docker/library/eclipse-temurin:20.0.2_9-jre AS runner
|
FROM public.ecr.aws/docker/library/eclipse-temurin:23.0.1_11-jre AS runner
|
||||||
LABEL authors="skydust"
|
LABEL authors="skydust"
|
||||||
WORKDIR /app
|
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/*
|
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 --from=builder /app/build/libs/JdrBot.jar /app/JdrBot.jar
|
||||||
COPY start.sh /app
|
COPY start.sh /app
|
||||||
|
|
||||||
CMD ["/bin/bash","./start.sh"]
|
CMD ["/bin/bash","./start.sh"]
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ dependencies {
|
|||||||
implementation 'com.github.oshi:oshi-core:6.6.5'
|
implementation 'com.github.oshi:oshi-core:6.6.5'
|
||||||
implementation 'com.github.oshi:oshi-json:3.13.6'
|
implementation 'com.github.oshi:oshi-json:3.13.6'
|
||||||
implementation 'org.slf4j:slf4j-simple:2.0.16'
|
implementation 'org.slf4j:slf4j-simple:2.0.16'
|
||||||
implementation 'org.apache.commons:commons-lang3:3.12.0'
|
implementation 'org.apache.commons:commons-lang3:3.17.0'
|
||||||
implementation 'dev.arbjerg:lavaplayer:2.2.2'
|
implementation 'dev.arbjerg:lavaplayer:2.2.2'
|
||||||
implementation 'net.dv8tion:JDA:5.0.0-beta.13'
|
implementation 'net.dv8tion:JDA:5.2.2'
|
||||||
implementation 'org.reflections:reflections:0.10.2'
|
implementation 'org.reflections:reflections:0.10.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user