Skip to content

Commit

Permalink
Store compressed image size
Browse files Browse the repository at this point in the history
  • Loading branch information
en-jschuetze authored Feb 15, 2024
1 parent b183eaf commit b9c554e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: docker tag ghcr.io/endava/docker-php:${{ env.PHP_VERSION }} php-${{ env.PHP_VERSION }}

- name: "IMAGE_SIZE Env"
run: echo "IMAGE_SIZE=`docker inspect php-${{ env.PHP_VERSION }} --format json | jq .[0].Size | numfmt --to=si`" > $GITHUB_ENV
run: echo "IMAGE_SIZE=`docker image save php-${{ env.PHP_VERSION }} | gzip | wc -c | numfmt --to=si`" > $GITHUB_ENV

- run: wget "https://img.shields.io/static/v1.png?label=${{ env.PHP_VERSION }}&message=${{ env.IMAGE_SIZE }}&color=blue" -O size-status.png

Expand Down

0 comments on commit b9c554e

Please sign in to comment.