-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from eclipse-tractusx/develop
feat: main release
- Loading branch information
Showing
177 changed files
with
12,572 additions
and
6,792 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
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 |
---|---|---|
|
@@ -35,11 +35,14 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Set up Java 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v2 | ||
|
||
- name: Test app | ||
run: ./gradlew test | ||
|
||
|
@@ -48,18 +51,18 @@ jobs: | |
run: ./gradlew jacocoTestReport | ||
|
||
- name: Upload test results | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-results | ||
path: ${{ github.workspace }}/build/ | ||
path: ${{ github.workspace }}/miw/build/ | ||
|
||
- name: Publish code coverage report as PR comment | ||
uses: madrapps/[email protected] | ||
if: always() | ||
with: | ||
paths: | | ||
${{ github.workspace }}/build/reports/xml/jacoco.xml | ||
${{ github.workspace }}/miw/build/reports/xml/jacoco.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
min-coverage-overall: 80 | ||
min-coverage-changed-files: 80 | ||
|
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
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
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
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 |
---|---|---|
|
@@ -48,13 +48,14 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v2 | ||
|
||
- name: Setup Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
uses: azure/[email protected] | ||
|
||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
@@ -94,15 +95,15 @@ jobs: | |
run: ./gradlew build | ||
|
||
- name: Upload build artifact | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build | ||
path: ./build | ||
path: ./miw/build | ||
if-no-files-found: error | ||
retention-days: 1 | ||
|
||
- name: Upload Helm chart artifact | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: charts | ||
path: ./charts | ||
|
@@ -114,6 +115,15 @@ jobs: | |
echo "::notice::${{ env.next_release }}" | ||
echo "::notice::${{ env.will_create_new_release }}" | ||
- name: Upload jar to GitHub release | ||
if: github.event_name != 'pull_request' && steps.semantic-release.outputs.will_create_new_release == 'true' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_VERSION: ${{ steps.semantic-release.outputs.next_release }} | ||
run: | | ||
echo "::notice::Uploading jar to GitHub release" | ||
gh release upload "v$RELEASE_VERSION" ./miw/build/libs/miw-latest.jar | ||
docker: | ||
name: Docker Release | ||
needs: semantic_release | ||
|
@@ -122,21 +132,21 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Download build artifact | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: build | ||
path: ./build | ||
path: ./miw/build | ||
|
||
- name: Download Helm chart artifact | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: charts | ||
path: ./charts | ||
|
||
# Create SemVer or ref tags dependent of trigger event | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }} | ||
|
@@ -152,14 +162,14 @@ jobs: | |
- name: DockerHub login | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v2 | ||
uses: docker/login-action@v3 | ||
with: | ||
# Use existing DockerHub credentials present as secrets | ||
username: ${{ secrets.DOCKER_HUB_USER }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
|
||
- name: Push image | ||
uses: docker/build-push-action@v2 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: ${{ github.event_name != 'pull_request' }} | ||
|
@@ -189,15 +199,13 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Download Helm chart artifact | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: charts | ||
path: ./charts | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
uses: azure/[email protected] | ||
|
||
- name: Add Helm dependency repositories | ||
run: | | ||
|
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
File renamed without changes.
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
Oops, something went wrong.