Skip to content

Commit

Permalink
JCF: add capability of permanently deleting a Docker image from our r…
Browse files Browse the repository at this point in the history
…egistry
  • Loading branch information
jcfreeman2 committed Dec 15, 2023
1 parent 7b897e0 commit 929a236
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/delete-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Permanently Delete an Image

on:
workflow_dispatch:
inputs:
image-id:
description: 'ID of the image to permanently remove'
default: ''

jobs:
permanently_delete_image:
name: permanently delete image
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: permanently delete an image with the provided ID
uses: actions/delete-package-versions@v4
with:
package-version-ids: ${{ github.event.inputs.image-id }}

0 comments on commit 929a236

Please sign in to comment.