Skip to content

Commit

Permalink
chore: Add workflow to remove untagged images
Browse files Browse the repository at this point in the history
Resolves: #82
  • Loading branch information
jidicula committed Feb 4, 2022
1 parent 92a91d2 commit 33cbe4c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/stale-image-clean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: stale-image-clean

on:
schedule:
- cron: '5 4 * * 5'
workflow_dispatch:

defaults:
run:
shell: bash

env:
REGISTRY: ghcr.io
IMAGE_NAME: clang-format

jobs:
clean-untagged-images:
name: Clean untagged images
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: Install ghcr-cleaner
run: go install github.com/jidicula/ghcr-cleaner
- name: Run ghcr-cleaner
run: ghcr-cleaner --token "${{ secrets.GITHUB_TOKEN }}" --packagename clang-format

0 comments on commit 33cbe4c

Please sign in to comment.