Skip to content

Commit 4c204ce

Browse files
committed
Fixed github actions.
1 parent 04fb2c5 commit 4c204ce

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.github/workflows/maven.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,24 @@
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33

44
name: Java CI with Maven
5-
65
on:
76
push:
87
branches: [ master ]
98
pull_request:
109
branches: [ master ]
11-
1210
jobs:
1311
build:
14-
1512
runs-on: ubuntu-latest
16-
1713
steps:
1814
- uses: actions/checkout@v4
15+
with:
16+
ref: master
17+
- name: Cache local Maven repository
18+
uses: actions/cache@v2
19+
with:
20+
path: ~/.m2/repository
21+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
22+
restore-keys: ${{ runner.os }}-maven-
1923
- name: Set up JDK 21
2024
uses: actions/setup-java@v3
2125
with:

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
name: Release
2-
1+
name: Publish package to GitHub Packages
32
on:
43
push:
5-
branches:
6-
- release
4+
tags:
5+
- v*
76
jobs:
87
build:
98
runs-on: ubuntu-latest
109
steps:
1110
- name: Checkout project
1211
uses: actions/checkout@v4
12+
with:
13+
ref: master
1314
- name: Cache local Maven repository
1415
uses: actions/cache@v2
1516
with:
1617
path: ~/.m2/repository
1718
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
1819
restore-keys: ${{ runner.os }}-maven-
19-
- name: Setup Java JDK
20+
- name: Setup Java 21
2021
uses: actions/setup-java@v3
2122
with:
2223
distribution: 'temurin'
23-
java-version: 21
24-
server-id: github
24+
java-version: '21'
25+
cache: 'maven'
2526
- name: Configure Git user
2627
run: |
2728
git config user.email "[email protected]"
2829
git config user.name "Kai Saborowski"
29-
chmod +x mvnw
3030
- name: Publish JAR
3131
run: ./mvnw -B release:prepare release:perform
3232
env:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ MAINTAINER [email protected]
44
EXPOSE 8080
55
RUN mkdir -p /app/
66
RUN mkdir -p /app/logs/
7-
ADD target/reactive-talk-202012-1.1.0.jar /app/app.jar
7+
ADD target/reactive-talk-202012-1.1.1.jar /app/app.jar
88
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=docker", "-jar", "/app/app.jar"]

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>de.ksbrwsk</groupId>
1212
<artifactId>reactive-people-postgresql</artifactId>
13-
<version>1.0.3-SNAPSHOT</version>
13+
<version>1.1.1-SNAPSHOT</version>
1414
<name>reactive-people-postgresql</name>
1515
<description>Reactive example Webflux, R2DBC, Testcontainers</description>
1616

0 commit comments

Comments
 (0)