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
89381662f8
commit
33fd18aa92
1 changed files with 17 additions and 1 deletions
18
.github/workflows/maven.yml
vendored
18
.github/workflows/maven.yml
vendored
|
@ -6,7 +6,7 @@ name: build-and-test
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
|
@ -29,3 +29,19 @@ jobs:
|
|||
distribution: 'adopt'
|
||||
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]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build image
|
||||
uses: bigloupe/buildpacks-action@master
|
||||
with:
|
||||
image: 'spring-petclinic'
|
||||
tag: '1.0.0'
|
||||
path: 'target/spring-petclinic-'
|
||||
builder: 'gcr.io/paketo-buildpacks/builder:tiny'
|
||||
env: 'HELLO=WORLD FOO=BAR BAZ'
|
||||
|
|
Loading…
Reference in a new issue