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
14ffad1300
commit
8a42802162
1 changed files with 30 additions and 7 deletions
37
.github/workflows/maven.yml
vendored
37
.github/workflows/maven.yml
vendored
|
@ -36,6 +36,11 @@ jobs:
|
|||
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:tiny'
|
||||
|
||||
steps:
|
||||
|
||||
|
@ -56,11 +61,29 @@ jobs:
|
|||
java-version: 8
|
||||
- run: mvn -B install --no-transfer-progress --file pom.xml
|
||||
|
||||
- name: Build image
|
||||
uses: bigloupe/buildpacks-action@master
|
||||
- name: Set App Name
|
||||
run: 'echo "::set-env name=IMG_NAME::$(echo ${REGISTRY})/$(echo ${USERNAME})/$(echo ${IMG_NAME})"'
|
||||
- name: Pack Remote Build
|
||||
uses: dfreilich/pack-action@v1
|
||||
with:
|
||||
image: 'spring-petclinic'
|
||||
tag: '1.0.0'
|
||||
path: 'target/spring-petclinic-2.4.5.jar'
|
||||
builder: 'gcr.io/paketo-buildpacks/spring-boot'
|
||||
env: 'BP_JVM_VERSION=8.*'
|
||||
args: 'build ${{ env.IMG_NAME }} --builder ${{ env.BUILDER }} --env BP_JVM_VERSION=8.* --publish'
|
||||
username: ${{ env.USERNAME }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: ${{ env.REGISTRY }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#- name: Build image
|
||||
# uses: bigloupe/buildpacks-action@master
|
||||
# with:
|
||||
# image: 'spring-petclinic'
|
||||
# tag: '1.0.0'
|
||||
# path: 'target/spring-petclinic-2.4.5.jar'
|
||||
# builder: 'gcr.io/paketo-buildpacks/spring-boot'
|
||||
# env: 'BP_JVM_VERSION=8.*'
|
||||
|
|
Loading…
Reference in a new issue