Push base image to test

This commit is contained in:
Sahil Ahuja 2025-02-10 21:03:43 +05:30
parent ade5e88991
commit 14fab87017

View File

@ -44,6 +44,9 @@ jobs:
IMAGE_SIZE=`docker inspect -f "{{ .Size }}" ${{ steps.get-id.outputs.DOCKER_IMAGE }} | numfmt --to=si`; IMAGE_SIZE=`docker inspect -f "{{ .Size }}" ${{ steps.get-id.outputs.DOCKER_IMAGE }} | numfmt --to=si`;
echo "$IMAGE_SIZE container ${{ steps.get-id.outputs.DOCKER_IMAGE }}"; echo "$IMAGE_SIZE container ${{ steps.get-id.outputs.DOCKER_IMAGE }}";
- name: Push the container image
run: docker push ${{ steps.get-id.outputs.DOCKER_IMAGE }}
- name: Scan Docker Image for vulnerabilities with Grype - name: Scan Docker Image for vulnerabilities with Grype
uses: anchore/scan-action@v6 uses: anchore/scan-action@v6
with: with:
@ -54,5 +57,3 @@ jobs:
severity-cutoff: critical severity-cutoff: critical
fail-build: true fail-build: true
- name: Push the container image
run: docker push ${{ steps.get-id.outputs.DOCKER_IMAGE }}