replace Docker buildx with build

This commit is contained in:
Dan Alima 2023-12-30 23:11:48 +02:00
parent d7b8de8376
commit 1d8094f0c9

View file

@ -26,18 +26,13 @@ jobs:
distribution: 'corretto'
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
run: ./mvnw -B package -D skipTests
- name: Run the tests
run: ./mvnw test
- 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
uses: aquasecurity/trivy-action@master
with: