mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
Changed the repo to matthewy
This commit is contained in:
parent
bd0b37de8d
commit
59b04c7231
1 changed files with 11 additions and 8 deletions
19
.github/workflows/ci-learning.yml
vendored
19
.github/workflows/ci-learning.yml
vendored
|
@ -4,10 +4,13 @@
|
||||||
name: Java CI with Maven (more complex)
|
name: Java CI with Maven (more complex)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
branches: [ main ]
|
|
||||||
pull_request:
|
# on:
|
||||||
branches: [ main ]
|
# push:
|
||||||
|
# branches: [ main ]
|
||||||
|
# pull_request:
|
||||||
|
# branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -60,11 +63,11 @@ jobs:
|
||||||
run: ./mvnw spring-boot:build-image
|
run: ./mvnw spring-boot:build-image
|
||||||
|
|
||||||
- name: Retag image with jfrog repo
|
- name: Retag image with jfrog repo
|
||||||
run: docker tag spring-petclinic:3.1.0-SNAPSHOT my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
run: docker tag spring-petclinic:3.1.0-SNAPSHOT matthewy.jfrog.io/petclinic-docker/spring-petclinic:3.1.0-SNAPSHOT
|
||||||
|
|
||||||
- name: Export the built image to a tar file
|
- name: Export the built image to a tar file
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
IMAGE_NAME: matthewy.jfrog.io/petclinic-docker/spring-petclinic:3.1.0-SNAPSHOT
|
||||||
run: docker save $IMAGE_NAME > /tmp/petclinic.tar
|
run: docker save $IMAGE_NAME > /tmp/petclinic.tar
|
||||||
|
|
||||||
- name: Upload Image as an artifact
|
- name: Upload Image as an artifact
|
||||||
|
@ -103,12 +106,12 @@ jobs:
|
||||||
|
|
||||||
- name: Scan Image for vulnerabilities
|
- name: Scan Image for vulnerabilities
|
||||||
run:
|
run:
|
||||||
jf docker scan my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
jf docker scan matthewy.jfrog.io/petclinic-docker/spring-petclinic:3.1.0-SNAPSHOT
|
||||||
|
|
||||||
|
|
||||||
- name: Push Docker Image to the Artifactory repository
|
- name: Push Docker Image to the Artifactory repository
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
IMAGE_NAME: matthewy.jfrog.io/petclinic-docker/spring-petclinic:3.1.0-SNAPSHOT
|
||||||
run:
|
run:
|
||||||
jf docker push $IMAGE_NAME
|
jf docker push $IMAGE_NAME
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue