Skip to content

Commit

Permalink
ci: try GHCR cleanup with Statnett BOT token (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb authored Oct 2, 2023
1 parent 50fbd09 commit b9b3939
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/clean-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
packages: write # for snok/container-retention-policy to delete images
runs-on: ubuntu-latest
steps:
- id: token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.STATNETT_BOT_APP_ID }}
private_key: ${{ secrets.STATNETT_BOT_PRIVATE_KEY }}
- name: Delete untagged container images older than a week
uses: snok/container-retention-policy@04c70fd030033036d69c0057e0d125bf25820544 # v2.1.2
with:
Expand All @@ -22,4 +27,4 @@ jobs:
account-type: org
org-name: statnett
untagged-only: true
token: ${{ secrets.BOT_PAT }}
token: ${{ steps.token.outputs.token }}

0 comments on commit b9b3939

Please sign in to comment.