mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 00:05:50 +00:00
fixed typo
This commit is contained in:
parent
ccc963f78d
commit
8c47147703
1 changed files with 51 additions and 51 deletions
102
.github/workflows/ci-learning.yml
vendored
102
.github/workflows/ci-learning.yml
vendored
|
@ -95,63 +95,63 @@ jobs:
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
|
|
||||||
container-build:
|
container-build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java: [ '17' ]
|
java: [ '17' ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK ${{matrix.java}}
|
- name: Set up JDK ${{matrix.java}}
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: ${{matrix.java}}
|
java-version: ${{matrix.java}}
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Build the Maven container image
|
- name: Build the Maven container image
|
||||||
run: ./mvnw spring-boot:build-image
|
run: ./mvnw spring-boot:build-image
|
||||||
|
|
||||||
# I add this step for debug.
|
# I add this step for debug.
|
||||||
# My local Linux laptop uses podman rather than docker, so this is a useful debug step.
|
# My local Linux laptop uses podman rather than docker, so this is a useful debug step.
|
||||||
- name: List all the container images on the runner
|
- name: List all the container images on the runner
|
||||||
run: docker image
|
run: docker image
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup JFrog CLI
|
- name: Setup JFrog CLI
|
||||||
uses: jfrog/setup-jfrog-cli@v3
|
uses: jfrog/setup-jfrog-cli@v3
|
||||||
env:
|
env:
|
||||||
JF_URL: ${{ secrets.JF_URL }}
|
JF_URL: ${{ secrets.JF_URL }}
|
||||||
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
|
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- 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 my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
||||||
|
|
||||||
- name: Build Tag and push Docker Image
|
- name: Build Tag and push Docker Image
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
IMAGE_NAME: my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
||||||
run:
|
run:
|
||||||
jf docker push $IMAGE_NAME
|
jf docker push $IMAGE_NAME
|
||||||
|
|
||||||
- name: Scan for vulnerabilities
|
- name: Scan for vulnerabilities
|
||||||
run:
|
run:
|
||||||
jf scan *
|
jf scan *
|
||||||
|
|
||||||
- name: Publish Build info With JFrog CLI
|
- name: Publish Build info With JFrog CLI
|
||||||
env:
|
env:
|
||||||
# Generated and maintained by GitHub
|
# Generated and maintained by GitHub
|
||||||
JFROG_CLI_BUILD_NAME: spring-petclinic
|
JFROG_CLI_BUILD_NAME: spring-petclinic
|
||||||
# JFrog organization secret
|
# JFrog organization secret
|
||||||
JFROG_CLI_BUILD_NUMBER : ${{ github.run_number }}
|
JFROG_CLI_BUILD_NUMBER : ${{ github.run_number }}
|
||||||
run: |
|
run: |
|
||||||
# Export the build name and build nuber
|
# Export the build name and build nuber
|
||||||
# Collect environment variables for the build
|
# Collect environment variables for the build
|
||||||
jf rt build-collect-env
|
jf rt build-collect-env
|
||||||
# Collect VCS details from git and add them to the build
|
# Collect VCS details from git and add them to the build
|
||||||
jf rt build-add-git
|
jf rt build-add-git
|
||||||
# Publish build info
|
# Publish build info
|
||||||
jf rt build-publish
|
jf rt build-publish
|
||||||
|
|
Loading…
Reference in a new issue