Skip to content

Commit

Permalink
ci: previous property is not working as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Dec 19, 2023
1 parent 7f99bc5 commit 6580363
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/container-prune.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,29 @@ jobs:
name: Prune Container Images
runs-on: ubuntu-latest
steps:
- uses: bots-house/[email protected]
# - uses: bots-house/[email protected]
# with:
# owner: spectrocloud
# name: librarium
# token: ${{ secrets.GITHUB_TOKEN }}
# untagged-keep-latest: 1

- uses: vlaurin/[email protected]
with:
owner: spectrocloud
name: librarium
token: ${{ secrets.GITHUB_TOKEN }}
untagged-keep-latest: 1
organization: "spectrocloud"
container: "librarium"
dry-run: true
keep-younger-than: 1 # days
# keep-last: 2
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.'
# - 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 6580363

Please sign in to comment.