mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 00:25:50 +00:00
Update maven.yml
This commit is contained in:
parent
bb5d5de8fe
commit
e70b23d79b
1 changed files with 24 additions and 19 deletions
43
.github/workflows/maven.yml
vendored
43
.github/workflows/maven.yml
vendored
|
@ -33,27 +33,32 @@ jobs:
|
|||
java-version: ${{ matrix.java-version }}
|
||||
- run: mvn -B install --no-transfer-progress --file pom.xml
|
||||
|
||||
# build-image-and-publish:
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: [build-and-test-matrix]
|
||||
# env:
|
||||
# USERNAME: 'omearaj'
|
||||
# IMG_NAME: 'spring-petclinic'
|
||||
# REGISTRY: 'ghcr.io'
|
||||
# BUILDER: 'paketobuildpacks/builder:base'
|
||||
# IMAGE_NAME: 'ghrc.io/omearaj/spring-petclinic'
|
||||
build-image-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-and-test-matrix]
|
||||
env:
|
||||
USERNAME: 'omearaj'
|
||||
IMG_NAME: 'spring-petclinic'
|
||||
REGISTRY: 'ghcr.io'
|
||||
BUILDER: 'paketobuildpacks/builder:base'
|
||||
IMAGE_NAME: 'ghrc.io/omearaj/spring-petclinic'
|
||||
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v2
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# - name: Cache local Maven repository
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ~/.m2/repository
|
||||
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-maven-
|
||||
- name: Cache local Maven repository
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- uses: andrioid/setup-pack@latest
|
||||
- name: Build Image using Pack
|
||||
run: |
|
||||
pack build ghrc.io/omearaj/spring-petclinic --builder paketobuildpacks/builder:base --env 'BP_JVM_VERSION=8.*'
|
||||
|
||||
#- name: Setup Java and Build
|
||||
# uses: actions/setup-java@v2
|
||||
|
|
Loading…
Reference in a new issue