github actions update

This commit is contained in:
anhefti 2024-02-28 16:23:56 +01:00
parent a753971808
commit 93b450fa67

View file

@ -18,16 +18,16 @@ jobs:
steps: steps:
- -
name: Checkout repository name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- -
name: Set up JDK 8 name: Set up JDK 8
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
java-version: '8' java-version: '8'
distribution: 'adopt' distribution: 'adopt'
- -
name: Cache Maven packages name: Cache Maven packages
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/.m2 path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
@ -37,7 +37,7 @@ jobs:
run: mvn clean install -e -P let_reporting run: mvn clean install -e -P let_reporting
- -
name: Reporting name: Reporting
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v4
with: with:
flags: unittests flags: unittests
name: SEB Server Build name: SEB Server Build
@ -69,16 +69,16 @@ jobs:
echo ${{ env.TAG_NAME }} echo ${{ env.TAG_NAME }}
- -
name: Checkout repository name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- -
name: Set up JDK 17 name: Set up JDK 17
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
java-version: '17' java-version: '17'
distribution: 'adopt' distribution: 'adopt'
- -
name: Cache Maven packages name: Cache Maven packages
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/.m2 path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
@ -92,7 +92,7 @@ jobs:
name: Simplify package name name: Simplify package name
run: mv target/seb-server-${{ env.TAG_NAME }}-${{ env.SHA }}.jar target/seb-server.jar run: mv target/seb-server-${{ env.TAG_NAME }}-${{ env.SHA }}.jar target/seb-server.jar
- -
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: Package name: Package
path: target/seb-server.jar path: target/seb-server.jar
@ -132,7 +132,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- -
name: Checkout repository name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
# Install the cosign tool except on PR # Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer # https://github.com/sigstore/cosign-installer
@ -142,7 +142,7 @@ jobs:
uses: sigstore/cosign-installer@main uses: sigstore/cosign-installer@main
- -
name: Download a single artifact name: Download a single artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: Package name: Package
- -