Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.15 KB

README.md

File metadata and controls

41 lines (34 loc) · 1.15 KB

prune-docr-images-action status

prune-docr-images-action

Usage

name: Deploy

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - run: blah.sh

  prune:
    runs-on: ubuntu-latest
    needs: deploy
    if: ${{ needs.checks.outputs.result == 'success' }}
    steps:
      - name: Install doctl
        uses: digitalocean/action-doctl@v2
        with:
          token: ${{ secrets.DO_API_TOKEN }}
      - name: Prune tags
        uses: uplift-ltd/prune-docr-tags-action
        with:
          repository: my-app
          keep: 10
      - name: Run garbage collection
        run: doctl registry garbage-collection start

Inputs

input required default description
repository required The name of the repository to prune.
keep optional 10 How many tags to keep.