Update maven.yml

This commit is contained in:
Jamie O'Meara 2021-05-18 11:21:53 -06:00 committed by GitHub
parent bf8fcfdf3e
commit 963bb85047
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,27 +33,27 @@ 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:
3 path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-maven-
#- name: Setup Java and Build
# uses: actions/setup-java@v2