Update maven.yml

This commit is contained in:
Jamie O'Meara 2021-05-12 17:18:17 -06:00 committed by GitHub
parent d23c2c6ed5
commit 2f188e7bc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,32 +62,32 @@ jobs:
# java-version: 8 # java-version: 8
#- run: mvn -B install --no-transfer-progress --file pom.xml #- run: mvn -B install --no-transfer-progress --file pom.xml
#- 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 - name: Pack Remote Build
# uses: dfreilich/pack-action@v1 uses: dfreilich/pack-action@v1
# with:
# args: 'build ${{ env.IMAGE_NAME }} --path /home/runner/work/spring-petclinic/spring-petclinic --builder ${{ env.BUILDER }} --env "BP_JVM_VERSION=8.*" --publish'
# username: ${{ env.USERNAME }}
# password: ${{ secrets.GITHUB_TOKEN }}
# registry: ${{ env.REGISTRY }}
- name: Build image
id: build-image
uses: bigloupe/buildpacks-action@master
with: with:
image: 'ghrc.io/omearaj/spring-petclinic' args: 'build ${{ env.IMAGE_NAME }} --path ./spring-petclinic --builder ${{ env.BUILDER }} --env "BP_JVM_VERSION=8.*" --publish'
tag: 'latest-${{ github.sha }}' username: ${{ env.USERNAME }}
path: '.' password: ${{ secrets.GITHUB_TOKEN }}
builder: 'gcr.io/paketo-buildpacks/builder:base' registry: ${{ env.REGISTRY }}
env: 'BP_JVM_VERSION=8.*'
- name: Push To GHRC.io # - name: Build image
id: push-to-quay # id: build-image
uses: redhat-actions/push-to-registry@v2 # uses: bigloupe/buildpacks-action@master
with: # with:
image: ghrc.io/omearaj/spring-petclinic # image: 'ghrc.io/omearaj/spring-petclinic'
tags: latest-${{ github.sha }} # tag: 'latest-${{ github.sha }}'
registry: ghrc.io # path: '.'
username: ${{ github.actor }} # builder: 'gcr.io/paketo-buildpacks/builder:base'
password: ${{ secrets.github.token }} # 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 }}