Skip to content

Commit

Permalink
Merge pull request quarkusio#19449 from gsmet/quarkiverse-temurin
Browse files Browse the repository at this point in the history
Use Eclipse Temurin in Quarkiverse workflow templates
  • Loading branch information
famod authored Aug 17, 2021
2 parents 693a571 + 6dfc4a7 commit 4914153
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
shell: bash
- name: Cache Maven Repository
id: cache-maven
uses: actions/cache@v2
with:
path: ~/.m2/repository
# refresh cache every month to avoid unlimited growth
key: maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}

- name: Build with Maven
run: mvn -B formatter:validate verify --file pom.xml

- uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11

- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
shell: bash
- name: Cache Maven Repository
id: cache-maven
uses: actions/cache@v2
with:
path: ~/.m2/repository
# refresh cache every month to avoid unlimited growth
key: maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}

- name: Build with Maven
run: mvn -B formatter:validate verify --file pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
run: sudo add-apt-repository ppa:rmescandon/yq && sudo apt update && sudo apt install yq -y

- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}

- name: Checkout repo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ jobs:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11

- name: Cache local Maven repository
Expand Down

0 comments on commit 4914153

Please sign in to comment.