3535 username : ${{ secrets.DOCKERHUB_USERNAME }}
3636 password : ${{ secrets.DOCKERHUB_TOKEN }}
3737
38- - name : Extract metadata
38+ - name : Generate Docker Image Tags and Labels
3939 id : meta
4040 uses : docker/metadata-action@v5
4141 with :
@@ -44,10 +44,10 @@ jobs:
4444 type=ref,event=branch
4545 type=ref,event=pr
4646 type=semver,pattern={{version}}
47- type=semver,pattern={{major}}.{{minor}}
47+ # type=semver,pattern={{major}}.{{minor}}
4848 type=raw,value=latest,enable={{is_default_branch}}
4949
50- - name : Build and push Docker image
50+ - name : Build and Push Docker Image
5151 uses : docker/build-push-action@v5
5252 with :
5353 context : .
@@ -60,15 +60,16 @@ jobs:
6060 cache-to : type=gha,mode=max
6161 build-args : |
6262 BUILDKIT_INLINE_CACHE=1
63+ CACHEBUST=${{ github.run_id }}
6364
64- - name : Scan image for vulnerabilities
65+ - name : Scan Image for Vulnerabilities
6566 uses :
aquasecurity/[email protected] 6667 with :
6768 image-ref : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
6869 format : ' sarif'
6970 output : ' trivy-results.sarif'
7071
71- - name : Upload Trivy scan results to GitHub Security tab
72+ - name : Upload Trivy Scan Results to GitHub Security Tab
7273 uses : github/codeql-action/upload-sarif@v3
7374 if : always()
7475 with :
0 commit comments