Skip to content

Commit

Permalink
ci: Image prune correction (#1923) (#1925)
Browse files Browse the repository at this point in the history
* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: previous property is not working as expected

* ci: fixed image job

* ci: fixed image job

(cherry picked from commit 1cc93ef)

Co-authored-by: Karl Cardenas <[email protected]>
  • Loading branch information
1 parent 93603b4 commit edfed7c
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions .github/workflows/container-prune.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,32 @@ on:
workflow_dispatch:



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-older-than: 1d

- 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.'
- uses: snok/container-retention-policy@v2
with:
image-names: librarium
cut-off: 1 day ago UTC
timestamp-to-use: created_at
account-type: personal
org-name: spectrocloud
keep-at-least: 1
skip-tags: nightly
dry-run: false
token-type: github-token
token: ${{ secrets.GITHUB_TOKEN }}

- 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.'

0 comments on commit edfed7c

Please sign in to comment.