From 24acc0b9421c9d6eac6c7b639208934c4e05d2ed Mon Sep 17 00:00:00 2001 From: Arindy Date: Tue, 11 Feb 2025 23:11:06 +0100 Subject: [PATCH] push to packages --- .github/workflows/ci.yaml | 7 ++----- README.md | 25 +++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2dc71ad..c3dac06 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,11 +25,6 @@ jobs: run: | ./mvnw -B --no-transfer-progress versions:set -DremoveSnapshot - - name: docker login - run: | - docker login git.arindy.de - - - name: Build Runner run: | ./mvnw -B --no-transfer-progress clean verify -Pnative -Dquarkus.native.remote-container-build=true -Djgitver.skip=true @@ -51,8 +46,10 @@ jobs: - name: Build Container if: github.ref_name == 'main' run: | + echo ${{secrets.PACKAGES_TOKEN}} | docker login --username ${{ secrets.PACKAGES_USER }} --password-stdin git.arindy.de docker build -f src/main/docker/Dockerfile.native-micro -t git.arindy.de/arindy/dice-tower:latest -t git.arindy.de/arindy/dice-tower:${{ steps.version.outputs.VERSION }} . docker push git.arindy.de/arindy/dice-tower:${{ steps.version.outputs.VERSION }} + docker push git.arindy.de/arindy/dice-tower:latest - name: Deploy if: github.ref_name == 'main' diff --git a/README.md b/README.md index e9550f3..678bae0 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@

Key Features • - How To Build • + Start Container • + How To Build from scratchCreditsLicense

@@ -24,8 +25,28 @@ * Watch roll results (also available as Browser Source in OBS) --- +## Start Container -## How To Build +You can start dice-tower with docker compose + +Create a `compose.yml`-File with following content: +```yaml +services: + api: + container_name: dice-tower + image: git.arindy.de/arindy/dice-tower:latest + restart: always + ports: + - "8080:8080" +``` +Run the container with: +```bash +docker compose up -d +``` + +--- + +## How To Build from scratch To clone and run this application, you'll need `git`, `java21` and `docker`.