|
32 | 32 | - name: Set up Docker Buildx |
33 | 33 | uses: docker/setup-buildx-action@v3 |
34 | 34 |
|
| 35 | + - name: Build backend Docker Image (Local) |
| 36 | + uses: docker/build-push-action@v6 |
| 37 | + with: |
| 38 | + context: backend |
| 39 | + load: true |
| 40 | + tags: ${{ env.IMAGE_PREFIX }}-backend:${{ github.sha }} |
| 41 | + cache-from: type=gha |
| 42 | + cache-to: type=gha,mode=max |
| 43 | + |
| 44 | + - name: Run Trivy vulnerability scanner |
| 45 | + uses: aquasecurity/trivy-action@v0.36.0 |
| 46 | + with: |
| 47 | + image-ref: '${{ env.IMAGE_PREFIX }}-backend:${{ github.sha }}' |
| 48 | + exit-code: '1' |
| 49 | + ignore-unfixed: true |
| 50 | + severity: 'CRITICAL,HIGH' |
| 51 | + |
35 | 52 | - name: Build and Push backend Docker Image |
36 | 53 | uses: docker/build-push-action@v6 |
37 | 54 | with: |
|
81 | 98 | - name: Set up Docker Buildx |
82 | 99 | uses: docker/setup-buildx-action@v3 |
83 | 100 |
|
| 101 | + - name: Build frontend Docker Image (Local) |
| 102 | + uses: docker/build-push-action@v6 |
| 103 | + with: |
| 104 | + context: frontend |
| 105 | + file: frontend/Dockerfile.actions |
| 106 | + load: true |
| 107 | + tags: ${{ env.IMAGE_PREFIX }}-frontend:${{ github.sha }} |
| 108 | + cache-from: type=gha |
| 109 | + cache-to: type=gha,mode=max |
| 110 | + |
| 111 | + - name: Run Trivy vulnerability scanner |
| 112 | + uses: aquasecurity/trivy-action@v0.36.0 |
| 113 | + with: |
| 114 | + image-ref: '${{ env.IMAGE_PREFIX }}-frontend:${{ github.sha }}' |
| 115 | + exit-code: '1' |
| 116 | + ignore-unfixed: true |
| 117 | + severity: 'CRITICAL,HIGH' |
| 118 | + |
84 | 119 | - name: Build and Push frontend Docker Image |
85 | 120 | uses: docker/build-push-action@v6 |
86 | 121 | with: |
|
0 commit comments