Skip to content

Prune images

Prune images #4

Workflow file for this run

name: Prune images
on:
workflow_run:
workflows: [Docker-build]
types: [completed]
jobs:
prune:
runs-on: ubuntu-latest
steps:
- name: prune-staging-api
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: keymanapp
container: api-keyman-com-app
dry-run: true
keep-younger-than: 7
keep-last: 3
prune-tags-regexes: staging
prune-untagged: true
- name: prune-staging-db
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: keymanapp
container: api-keyman-com-db
dry-run: true
keep-younger-than: 7
keep-last: 3
prune-tags-regexes: staging
prune-untagged: true
- name: prune-production-api
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: keymanapp
container: api-keyman-com-app
dry-run: true
keep-younger-than: 7
keep-last: 3
prune-tags-regexes: master
prune-untagged: true
- name: prune-production-db
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: keymanapp
container: api-keyman-com-db
dry-run: true
keep-younger-than: 7
keep-last: 3
prune-tags-regexes: master
prune-untagged: true