Skip to content

Commit 25408e1

Browse files
committed
update github actions
1 parent d7c1ee7 commit 25408e1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/maven-and-docker.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,31 @@ jobs:
2424
contents: write # needed by softprops/action-gh-release
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- name: Set up JDK 21
29-
uses: actions/setup-java@v3
29+
uses: actions/setup-java@v4
3030
with:
31-
java-version: '21'
3231
distribution: 'temurin'
32+
java-version: '21'
3333
cache: maven
3434
- name: Build with Maven
3535
run: mvn -B package --settings ./.mvn/unblock-mirrors.xml --update-snapshots verify --file pom.xml
3636
# package as artifact
3737
- run: mkdir staging && cp target/*.jar staging && cp target/*.zip staging
38-
- uses: actions/upload-artifact@v3
38+
- uses: actions/upload-artifact@v4
3939
with:
40-
name: Package
40+
name: pia-package
4141
path: staging
4242
- name: Upload coverage to Codecov
43-
uses: codecov/codecov-action@v3
43+
uses: codecov/codecov-action@v5
4444
with:
4545
token: ${{ secrets.CODECOV_TOKEN }}
4646
flags: unittests
4747
name: codecov-umbrella
4848
verbose: true
4949
- name: Release
5050
if: ${{ github.event_name == 'release' }}
51-
uses: softprops/action-gh-release@v1
51+
uses: softprops/action-gh-release@v2
5252
with:
5353
files: |
5454
staging/*.zip
@@ -64,12 +64,12 @@ jobs:
6464

6565
steps:
6666
- name: Checkout repository
67-
uses: actions/checkout@v3
67+
uses: actions/checkout@v4
6868

6969
# Login against a Docker registry except on PR
7070
# https://github.com/docker/login-action
7171
- name: Log into Docker Hub
72-
uses: docker/login-action@v2
72+
uses: docker/login-action@v3
7373
with:
7474
username: ${{ secrets.DOCKERHUB_USERNAME }}
7575
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -78,7 +78,7 @@ jobs:
7878
# https://github.com/docker/metadata-action
7979
- name: Extract Docker metadata
8080
id: meta
81-
uses: docker/metadata-action@v4
81+
uses: docker/metadata-action@v5
8282
with:
8383
images: julianusz/pia
8484
labels: |
@@ -89,7 +89,7 @@ jobs:
8989
# https://github.com/docker/build-push-action
9090
- name: Build and push Docker image
9191
id: build-and-push
92-
uses: docker/build-push-action@v4
92+
uses: docker/build-push-action@v6
9393
with:
9494
context: .
9595
push: ${{ github.event_name == 'release' }}

0 commit comments

Comments
 (0)