From df797c00312ba9080b8eb340368b80991e953b62 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Sat, 27 Jan 2024 14:57:25 -0500 Subject: [PATCH] updated CI --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ pom.xml | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..45bf4a3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +## A basic GitHub Actions workflow for your Quarkus application. + +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +env: + QUARKUS_CONTAINER_IMAGE_USERNAME: ${{ secrets.DOCKER_HUB_LOGIN }} + QUARKUS_CONTAINER_IMAGE_PASSWORD: ${{ secrets.DOCKER_HUB_PWD }} + MVN_SETTINGS: ${{ secrets.MVN_SETTINGS }} + GPG_KEY: ${{ secrets.GPG_KEY }} + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout gh-repo + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: temurin + cache: maven + + - name: Build + run: | + echo ${MVN_SETTINGS} > /tmp/settings.xml + echo -n "$GPG_KEY" | base64 --decode | gpg --import + mvn deploy -s /tmp/settings.xml + rm -f /tmp/settings.xml + rm -rf /home/runner/.gpg diff --git a/pom.xml b/pom.xml index 026ac41..d56b2f1 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 io.2060 service-agent-java-client - 2.0.1 + 2.0.2 UTF-8 17