Skip to content

Cleanup Images

Cleanup Images #13

Workflow file for this run

---
name: Cleanup Images
on:
schedule:
- cron: "0 0 * * 3"
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
cleanup-images:
name: 🧹 Clean Images
runs-on: ubuntu-latest
permissions:
packages: write # is needed by dataaxiom/ghcr-cleanup-action to delete untagged and orphaned images
steps:
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
disable-sudo: true
allowed-endpoints: >
api.github.com:443
ghcr.io:443
- uses: dataaxiom/ghcr-cleanup-action@d52806a0dc70b430571a37da1fde39733ffd640f # v1.2.2
with:
delete-orphaned-images: true
delete-untagged: true
packages: embedded-devcontainer,embedded-devcontainer-cpp,embedded-devcontainer-rust