Merge pull request #7 from octodemo/omearaj-patch-1

Update maven.yml
This commit is contained in:
Jamie O'Meara 2021-05-18 14:12:31 -06:00 committed by GitHub
commit 2c19bdee8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,13 +47,18 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
#- name: Cache local Maven repository - name: Cache local Maven repository
# uses: actions/cache@v2 uses: actions/cache@v2
# with: with:
# path: ~/.m2/repository path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: | restore-keys: |
# ${{ runner.os }}-maven- ${{ runner.os }}-maven-
- uses: andrioid/setup-pack@v1.0.1
- name: "😆 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 #- name: Setup Java and Build
# uses: actions/setup-java@v2 # uses: actions/setup-java@v2
@ -64,27 +69,35 @@ jobs:
#- name: Set App Name #- name: Set App Name
#run: 'echo "::set-env name=IMG_NAME::$(echo ${REGISTRY})/$(echo ${USERNAME})/$(echo ${IMG_NAME})"' #run: 'echo "::set-env name=IMG_NAME::$(echo ${REGISTRY})/$(echo ${USERNAME})/$(echo ${IMG_NAME})"'
#- name: Pack Remote Build
# uses: dfreilich/pack-action@v1 # - name: Pack Remote Build
# with: # uses: dfreilich/pack-action@v1
# args: 'build ${{ env.IMAGE_NAME }} --path /home/runner/work/spring-petclinic/spring-petclinic --builder ${{ env.BUILDER }} --env "BP_JVM_VERSION=8.*" --publish' # with:
# username: ${{ env.USERNAME }} # args: 'build ${{ env.IMAGE_NAME }} --path ./spring-petclinic --builder ${{ env.BUILDER }} --env "BP_JVM_VERSION=8.*" --publish'
# password: ${{ secrets.GITHUB_TOKEN }} # username: ${{ env.USERNAME }}
# registry: ${{ env.REGISTRY }} # password: ${{ secrets.GITHUB_TOKEN }}
# registry: ${{ env.REGISTRY }}
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# - name: Build image
# id: build-image
# uses: bigloupe/buildpacks-action@master
- name: Build image # with:
uses: bigloupe/buildpacks-action@master # image: 'ghrc.io/omearaj/spring-petclinic'
with: # tag: 'latest-${{ github.sha }}'
image: 'spring-petclinic' # path: '.'
tag: '1.0.0' # builder: 'gcr.io/paketo-buildpacks/builder:base'
path: '.' # env: 'BP_JVM_VERSION=8.*'
builder: 'gcr.io/paketo-buildpacks/builder:base'
env: 'BP_JVM_VERSION=8.*' # - name: Push To GHRC.io
# id: push-to-quay
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ghrc.io/omearaj/spring-petclinic
# tags: latest-${{ github.sha }}
# registry: ghrc.io
# username: ${{ github.actor }}
# password: ${{ secrets.github.token }}