From a9f1e48765ef07f63345edb30fd759cc4a0e8475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kebrle?= Date: Mon, 28 Oct 2024 19:39:57 +0100 Subject: [PATCH] update action --- .github/workflows/pipeline.yml | 16 ++++++++-------- README.md | 16 +++++++++++++--- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 0f2a4fe..705ab8f 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -16,8 +16,8 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: '17' - distribution: 'adopt' + java-version: "17" + distribution: "adopt" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -30,12 +30,12 @@ jobs: with: context: ./ file: ./src/main/docker/Dockerfile.jvm - tags: tda-quarkus:latest - outputs: type=docker,dest=/tmp/tda-quarkus.tar + tags: tda:latest + outputs: type=docker,dest=/tmp/tda.tar - name: Upload to TdA - uses: Tour-de-App/upload-app@tda-24 + uses: Tour-de-App/upload-app@tda-25 with: - team_secret: ${{ secrets.TEAM_SECRET }} - image_name: tda-quarkus - image_path: /tmp/tda-quarkus.tar + team_token: ${{ secrets.TEAM_TOKEN }} + image_name: tda + image_path: /tmp/tda.tar diff --git a/README.md b/README.md index cfd8c5c..e403e1b 100644 --- a/README.md +++ b/README.md @@ -7,24 +7,28 @@ If you want to learn more about Quarkus, please visit its website: https://quark ## Running the application in dev mode You can run your application in dev mode that enables live coding using: + ```shell script ./mvnw compile quarkus:dev ``` -> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/. +> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/. ## Packaging and running the application The application can be packaged using: + ```shell script ./mvnw package ``` + It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory. Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory. The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`. If you want to build an _über-jar_, execute the following command: + ```shell script ./mvnw package -Dquarkus.package.type=uber-jar ``` @@ -33,12 +37,14 @@ The application, packaged as an _über-jar_, is now runnable using `java -jar ta ## Creating a native executable -You can create a native executable using: +You can create a native executable using: + ```shell script ./mvnw package -Dnative ``` -Or, if you don't have GraalVM installed, you can run the native executable build in a container using: +Or, if you don't have GraalVM installed, you can run the native executable build in a container using: + ```shell script ./mvnw package -Dnative -Dquarkus.native.container-build=true ``` @@ -54,3 +60,7 @@ If you want to learn more about building native executables, please consult http Easily start your Reactive RESTful Web Services [Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources) + +## Odevzdání + +Jak odevzdat svojí aplikaci můžete najít v našich [vzdělávacích materiálech](https://tourde.app/vzdelavaci-materialy/jak-odevzdavat)