diff --git a/.github/workflows/deploy-PROD.yml b/.github/workflows/deploy-PROD.yml index 2184e994..66999a5c 100644 --- a/.github/workflows/deploy-PROD.yml +++ b/.github/workflows/deploy-PROD.yml @@ -99,6 +99,17 @@ jobs: github/super-linter:latest ghcr.io/github/super-linter:latest + ########################### + # Clean the docker daemon # + ########################### + - name: Docker cleanup + run: | + docker images -f dangling=true | \ + tr '[:upper:]' '[:lower:]' | \ + awk '{print $3}' | \ + xargs docker rmi -f + exit 0 + ########################################### # Build and Push containers to registries # ########################################### diff --git a/.github/workflows/deploy-RELEASE.yml b/.github/workflows/deploy-RELEASE.yml index 8f125e06..7b974251 100644 --- a/.github/workflows/deploy-RELEASE.yml +++ b/.github/workflows/deploy-RELEASE.yml @@ -138,12 +138,23 @@ jobs: push: true tags: | github/super-linter:latest - github/super-linter:v3 + github/super-linter:v4 github/super-linter:${{ env.RELEASE_VERSION }} ghcr.io/github/super-linter:latest - ghcr.io/github/super-linter:v3 + ghcr.io/github/super-linter:v4 ghcr.io/github/super-linter:${{ env.RELEASE_VERSION }} + ########################### + # Clean the docker daemon # + ########################### + - name: Docker cleanup + run: | + docker images -f dangling=true | \ + tr '[:upper:]' '[:lower:]' | \ + awk '{print $3}' | \ + xargs docker rmi -f + exit 0 + ########################################### # Build and Push containers to registries # ########################################### @@ -159,10 +170,10 @@ jobs: push: true tags: | github/super-linter:slim-latest - github/super-linter:slim-v3 + github/super-linter:slim-v4 github/super-linter:slim-${{ env.RELEASE_VERSION }} ghcr.io/github/super-linter:slim-latest - ghcr.io/github/super-linter:slim-v3 + ghcr.io/github/super-linter:slim-v4 ghcr.io/github/super-linter:slim-${{ env.RELEASE_VERSION }} ########################