mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
replace Docker buildx with build
This commit is contained in:
parent
d7b8de8376
commit
1d8094f0c9
1 changed files with 1 additions and 6 deletions
7
.github/workflows/maven-build.yml
vendored
7
.github/workflows/maven-build.yml
vendored
|
@ -26,18 +26,13 @@ jobs:
|
||||||
distribution: 'corretto'
|
distribution: 'corretto'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Compile the code
|
- name: Compile the code
|
||||||
run: ./mvnw -B package -D skipTests
|
run: ./mvnw -B package -D skipTests
|
||||||
- name: Run the tests
|
- name: Run the tests
|
||||||
run: ./mvnw test
|
run: ./mvnw test
|
||||||
|
|
||||||
- name: Package the project as a runnable Docker image
|
- name: Package the project as a runnable Docker image
|
||||||
run: docker buildx build --platform linux/arm64,linux/amd64 -t my_repo/jfrog_assignment:${{ github.sha }} .
|
run: docker build -t my_repo/jfrog_assignment:${{ github.sha }} .
|
||||||
- name: Scan the project with your preferred SCA tool
|
- name: Scan the project with your preferred SCA tool
|
||||||
uses: aquasecurity/trivy-action@master
|
uses: aquasecurity/trivy-action@master
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue