forked from querqy/querqy-unplugged
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] add querqy-unplugged jar build GA
- Loading branch information
Showing
3 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: 'querqy-unplugged' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
env: | ||
SERVICE_NAME: querqy-unplugged | ||
JDK_VERSION: 11 | ||
|
||
permissions: | ||
id-token: write | ||
contents: read # This is required for actions/checkout | ||
statuses: write | ||
checks: write | ||
|
||
jobs: | ||
build-from-script: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.version.outputs.version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: setup java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '${{ inputs.jdk }}' | ||
|
||
- name: ECR Login | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
gradle-version: ${{ env.JDK_VERSION }} | ||
|
||
- name: run tests | ||
run: ./gradlew --refresh-dependencies check | ||
|
||
- name: jar | ||
run: ./gradlew :library:clean :library:assemble :library:testClasses :library:jar | ||
|
||
- name: test report | ||
uses: dorny/test-reporter@v1 | ||
if: always() # run this step even if previous step failed | ||
with: | ||
name: test report # Name of the check run which will be created | ||
path: build/test-results/**/TEST-*.xml # Path to test results | ||
reporter: java-junit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* ( | ||
* ( ( ( ( )\ ) | ||
* ( )\ ( )\))( ' )\ (()/( ( | ||
* )((_) )\ ((_)()\ )((((_)( /(_)))\ | ||
* ((_)_ ((_) _(())\_)())\ _ )\ (_)) ((_) | ||
* | _ )| __|\ \((_)/ /(_)_\(_)| _ \| __| | ||
* | _ \| _| \ \/\/ / / _ \ | /| _| | ||
* |___/|___| \_/\_/ /_/ \_\ |_|_\|___| | ||
* | ||
This file is a copy from the pipeline-scripts project (git@github.com:otto-ec/search_pipeline-scripts.git) | ||
It will be overwritten every night by the source from the pipeline-scripts. | ||
If you want to make changes to it that should be available globally, change it in the pipeline-scripts repo. | ||
If you have a change unique to this project consider putting the information elsewhere. | ||
*/ | ||
apply plugin: 'maven-publish' | ||
|
||
allprojects { | ||
repositories { | ||
// mavenLocal() uncomment to | ||
mavenCentral() | ||
maven { | ||
name "GitHub" | ||
url "https://maven.pkg.github.com/otto-de/querqy-unplugged" | ||
credentials { | ||
username = project.findProperty("gpr.user") ?: System.getenv("FKT_USER") | ||
password = project.findProperty("gpr.key") ?: System.getenv("FKT_KEY") | ||
} | ||
} | ||
flatDir { | ||
dirs "libs" | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
name "Github" | ||
url "https://maven.pkg.github.com/otto-ec/nucleus_libs" | ||
credentials { | ||
username = project.findProperty("gpr.user") ?: System.getenv("FKT_USER") | ||
password = project.findProperty("gpr.key") ?: System.getenv("FKT_KEY") | ||
} | ||
} | ||
} | ||
publications { | ||
gpr(MavenPublication) { | ||
from(components.java) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters