Skip to content

Commit

Permalink
Initial version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenskeiner committed Jul 5, 2024
1 parent 69d881d commit 8fc8953
Show file tree
Hide file tree
Showing 16 changed files with 1,685 additions and 2,024 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Integration Tests

on:
push:
pull_request_target:
types: [assigned, opened, synchronize, reopened]
workflow_dispatch: {}
# push:
# pull_request_target:
# types: [assigned, opened, synchronize, reopened]

permissions:
id-token: write
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2024, Dataaxiom Inc
Copyright (c) 2024, Jens Keiner

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
309 changes: 155 additions & 154 deletions README.md

Large diffs are not rendered by default.

51 changes: 18 additions & 33 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: Ghcr.io Cleanup Action
name: ghcr.io Repository Cleanup Action

description: >
Delete untagged/tagged images from the GitHub Container Registry. Supports
multi architecture and attestation images.
Delete obsolete images from a repository in the GitHub Container Registry
(ghcr.io).
author: Dataaxiom Inc
author: Jens Keiner

branding:
icon: trash-2
color: blue
color: red

inputs:
token:
description: >
Token to authenticate with the ghcr.io registry and the GitHub API
required: true

owner:
description: >
Owner of the package (user or organization)
Expand All @@ -27,49 +32,29 @@ inputs:
The package name. Defaults to the repository name.
required: false

token:
description: >
Token to authenticate with the ghcr.io registry and the GitHub API
required: true

tags:
description: >
Tags to delete (comma seperated) - Short form of delete-tags input option
required: false

delete-tags:
description: >
Tags to delete (comma seperated)
required: false

delete-untagged:
include-tags:
description: >
Delete untagged images (true/false)
Regular expression that matches tags to delete
required: false

keep-n-untagged:
exclude-tags:
description: >
Number of untagged images to keep (sorted by date)
Regular expression that matches tags to keep
required: false

keep-n-tagged:
description: >
Number of tagged images to keep (sorted by date)
Number of most recent tagged images to keep
required: false

exclude-tags:
keep-n-untagged:
description: >
Tags to exclude from deletion (comma seperated)
Number of most recent untagged images to keep
required: false

validate:
description: >
Validate all multi architecture images manifests by checking their digests
are present in the registry
dry-run:
description: >
Simulate action - does not remove any packages
Simulate action, do not actually remove any packages
required: false

log-level:
Expand Down
Loading

0 comments on commit 8fc8953

Please sign in to comment.