Skip to content

ci: container prunning #2

ci: container prunning

ci: container prunning #2

name: Container Image Cleanup
on:
push:
branches-ignore: [ main ]
jobs:
prune:
name: Prune Container Images
runs-on: ubuntu-latest
steps:
- name: Retrieve Credentials
id: import-secrets
uses: hashicorp/[email protected]
with:
url: https://vault.prism.spectrocloud.com
method: approle
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
secrets: /providers/github/organizations/spectrocloud/token?org_name=spectrocloud token | VAULT_GITHUB_TOKEN
- uses: bots-house/[email protected]
with:
owner: spectrocloud
name: librarium
# token: ${{ steps.import-secrets.outputs.VAULT_GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
untagged-keep-latest: 2