Skip to content

ci: previous property is not working as expected #22

ci: previous property is not working as expected

ci: previous property is not working as expected #22

name: Container Image Cleanup
on:
# workflow_run:
# workflows: ["Nighly Docker Build"]
# types: [completed]
# workflow_dispatch:
push:
branches-ignore: [ main ]
jobs:
prune:
name: Prune Container Images
runs-on: ubuntu-latest
steps:
# - uses: bots-house/[email protected]
# with:
# owner: spectrocloud
# name: librarium
# token: ${{ secrets.GITHUB_TOKEN }}
# untagged-keep-latest: 1
- uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: "spectrocloud"
container: "librarium"
dry-run: false
keep-younger-than: 1 # days
keep-last: 1
prune-untagged: true
# - name: Slack Notification
# if: ${{ failure() }}
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_USERNAME: "spectromate"
# SLACK_ICON_EMOJI: ":robot_panic:"
# SLACK_COLOR: ${{ job.status }}
# SLACK_MESSAGE: 'The nightly docs container prune workflow failed. Review the GitHub Actions logs for more details.'