Skip to content

Commit

Permalink
updated CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfelis committed Jan 27, 2024
1 parent 2e5ce9d commit df797c0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.2060</groupId>
<artifactId>service-agent-java-client</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
Expand Down

0 comments on commit df797c0

Please sign in to comment.