Skip to content

Commit 1ee88e6

Browse files
committed
Update Github Actions - docker jmv and native image
Point Heroku button to java-11 compatible branch
1 parent 4fbc1a0 commit 1ee88e6

File tree

4 files changed

+11
-21
lines changed

4 files changed

+11
-21
lines changed

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v2
18-
- name: Set up JDK 11
18+
- name: Set up JDK 17
1919
uses: actions/setup-java@v1
2020
with:
21-
java-version: 11
21+
java-version: 17
2222

2323
- name: Build Docker Image with Maven
2424
run: mvn spring-boot:build-image --file pom.xml

.github/workflows/heroku.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v2
21-
- name: Set up JDK 11
21+
- name: Set up JDK 17
2222
uses: actions/setup-java@v1
2323
with:
24-
java-version: 11
24+
java-version: 17
2525

2626
- name: Build with Maven
2727
run: mvn -B package --file pom.xml

.github/workflows/native-image.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,13 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Checkout Code
17-
uses: actions/checkout@v2
18-
19-
- name: Set up JDK 11
20-
uses: actions/setup-java@v1
16+
- uses: actions/checkout@v3
17+
- uses: graalvm/setup-graalvm@v1
2118
with:
22-
java-version: 11
23-
24-
- name: Run Integration Test to generate Graal Native Config files using Redis Container
25-
run: |
26-
docker run --rm -v $PWD:$PWD -w $PWD \
27-
-v /var/run/docker.sock:/var/run/docker.sock \
28-
springci/spring-graalvm-native:20.3-dev-java11 \
29-
mvn -Pnative clean test
30-
31-
- name: Reset target directory permission to current user
32-
run: sudo chown -R $(id -u):$(id -g) ./target
19+
version: 'latest'
20+
java-version: '17'
21+
components: 'native-image'
22+
github-token: ${{ secrets.GITHUB_TOKEN }}
3323

3424
- name: Build Graal Native Docker Image with Maven
3525
run: mvn -Pnative -DskipTests spring-boot:build-image

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ instances.
1010

1111
Both JVM based application and [Graal Native Image] is supported.
1212

13-
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
13+
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy/?template=https://github.com/RawSanj/spring-redis-websocket/tree/spring-boot-web-2.3)
1414

1515
> The older non-reactive servlet based spring-redis-websocket application can be found in below:
1616
>1. [Spring-Boot 2.3: Java-11 version](https://github.com/RawSanj/spring-redis-websocket/tree/spring-boot-web-2.3)

0 commit comments

Comments
 (0)