mirror of
https://github.com/goauthentik/authentik
synced 2026-04-27 18:07:15 +02:00
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 3.0.0 to 3.1.1.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](f8d387b68d...1b10c78c78)
---
updated-dependencies:
- dependency-name: actions/create-github-app-token
dependency-version: 3.1.1
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@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # 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@3b0972b2276b171b212f8c4efbca59ebba26eceb # v3.0.1
|
|
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 }}
|