mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
5c1f435995
Bumps [snok/container-retention-policy](https://github.com/snok/container-retention-policy) from 3.0.1 to 3.1.0. - [Release notes](https://github.com/snok/container-retention-policy/releases) - [Commits](https://github.com/snok/container-retention-policy/compare/3b0972b2276b171b212f8c4efbca59ebba26eceb...d3bdcf5ce9b05f685154e4a16c39233b245e3d53) --- updated-dependencies: - dependency-name: snok/container-retention-policy dependency-version: 3.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
33 lines
1006 B
YAML
33 lines
1006 B
YAML
---
|
|
name: GH - GHCR retention
|
|
|
|
on:
|
|
# schedule:
|
|
# - cron: "0 0 * * *" # every day at midnight
|
|
workflow_dispatch:
|
|
inputs:
|
|
dry-run:
|
|
type: boolean
|
|
description: Enable dry-run mode
|
|
|
|
jobs:
|
|
clean-ghcr:
|
|
name: Delete old unused container images
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: generate_token
|
|
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v2
|
|
with:
|
|
app-id: ${{ secrets.GH_APP_ID }}
|
|
private-key: ${{ secrets.GH_APP_PRIV_KEY }}
|
|
- name: Delete 'dev' containers older than a week
|
|
uses: snok/container-retention-policy@d3bdcf5ce9b05f685154e4a16c39233b245e3d53 # v3.1.0
|
|
with:
|
|
image-names: dev-server,dev-ldap,dev-proxy
|
|
image-tags: "!gh-next,!gh-main"
|
|
cut-off: One week ago UTC
|
|
account: goauthentik
|
|
tag-selection: untagged
|
|
token: ${{ steps.generate_token.outputs.token }}
|
|
dry-run: ${{ inputs.dry-run }}
|