From 65803632462e74cf97c0028cad5ac64ee275f36d Mon Sep 17 00:00:00 2001 From: Karl Cardenas Date: Tue, 19 Dec 2023 15:54:40 -0700 Subject: [PATCH] ci: previous property is not working as expected --- .github/workflows/container-prune.yaml | 36 ++++++++++++++++---------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/workflows/container-prune.yaml b/.github/workflows/container-prune.yaml index bdded3ff3c..560d45a88e 100644 --- a/.github/workflows/container-prune.yaml +++ b/.github/workflows/container-prune.yaml @@ -14,19 +14,29 @@ jobs: name: Prune Container Images runs-on: ubuntu-latest steps: - - uses: bots-house/ghcr-delete-image-action@v1.1.0 + # - uses: bots-house/ghcr-delete-image-action@v1.1.0 + # with: + # owner: spectrocloud + # name: librarium + # token: ${{ secrets.GITHUB_TOKEN }} + # untagged-keep-latest: 1 + + - uses: vlaurin/action-ghcr-prune@v0.5.0 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.'