From 33fd18aa9218822a5603896dd841c679af3c1c64 Mon Sep 17 00:00:00 2001 From: Jamie O'Meara Date: Wed, 12 May 2021 11:21:48 -0600 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 73cbc0158..be30e5aa8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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'