Skip to content

Commit

Permalink
ci: remove untagged images from ghcr.io (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
queensferryme committed Sep 4, 2021
1 parent 9cdfde2 commit 486a480
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
with:
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}
labels: ${{ steps.meta.outputs.labels }}
load: true
tags: rsserpent:master
labels: ${{ steps.meta.outputs.labels }}
- name: "Minify Docker Images with `docker-slim`"
run: |
curl https://downloads.dockerslim.com/releases/1.36.3/dist_linux.tar.gz -o ds.tar.gz
Expand All @@ -68,3 +68,10 @@ jobs:
for tag in `echo "${{ steps.meta.outputs.tags }}"`; do
docker push $tag
done
- uses: bots-house/ghcr-delete-image-action@main
if: ${{ github.repository == 'RSSerpent/RSSerpent' }}
with:
owner: rsserpent
name: rsserpent
token: ${{ secrets.PAT_TOKEN }}
untagged-keep-latest: 0

0 comments on commit 486a480

Please sign in to comment.