This commit is contained in:
parent
495987c06c
commit
e96153d2d4
4 changed files with 34 additions and 1 deletions
24
.forgejo/workflows/pipeline.yaml
Normal file
24
.forgejo/workflows/pipeline.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
on:
|
||||
release:
|
||||
types: [published]
|
||||
jobs:
|
||||
upload:
|
||||
runs-on: host
|
||||
permissions:
|
||||
packages: write
|
||||
steps:
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
- uses: actions/checkout@v6
|
||||
- run: ./gradlew buildFatJar
|
||||
- run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ github.token }}" \
|
||||
-F "attachment=@build/libs/todo-all.jar" \
|
||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets"
|
||||
- run: |
|
||||
export XDG_RUNTIME_DIR=/run/user/$(id -u)
|
||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||
cp build/libs/todo-all.jar ~/todo/app.jar
|
||||
systemctl --user restart todo
|
||||
|
|
@ -29,6 +29,15 @@ buildscript {
|
|||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
mergeServiceFiles {
|
||||
include("META-INF/services/**")
|
||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("io.ktor:ktor-server-core")
|
||||
implementation("io.ktor:ktor-server-content-negotiation")
|
||||
|
|
|
|||
0
gradlew
vendored
Normal file → Executable file
0
gradlew
vendored
Normal file → Executable file
|
|
@ -3,7 +3,7 @@ ktor:
|
|||
modules:
|
||||
- cz.flegr.ApplicationKt.module
|
||||
deployment:
|
||||
port: 8080
|
||||
port: "$PORT:8080"
|
||||
postgres:
|
||||
url: "jdbc:postgresql://localhost:5432/todo"
|
||||
user: postgres
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue