Skip to content

Commit

Permalink
add slim toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
italopessoa authored Jun 4, 2024
1 parent 21989ea commit e9f51b1
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/publish-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,24 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=

- name: Slim docker image
id: slim
uses: kitabisa/docker-slim-action@v1
env:
DSLIM_HTTP_PROBE: false
with:
target: ${{ env.IMAGE_NAME }}:latest
tag: "slim"

# Push to the registry
- run: docker image push "${{ env.IMAGE_NAME }}:slim"

# Dump the report
- run: echo "${REPORT}"
env:
REPORT: ${{ steps.slim.outputs.report }}

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
Expand Down

0 comments on commit e9f51b1

Please sign in to comment.