Skip to content

Delete older images #51

Delete older images

Delete older images #51

name: smk-composite-action-tests
# used on push for testing / development
# on:
# push:
on:
pull_request:
# debug: remove the dev,putting build action on non existent branches for debug
branches: ['master', 'main']
types: ['opened', 'reopened']
paths-ignore:
- openshift/**
- .vscode/**
- docs/**
- .gitignore
- LICENSE
- open-api.json
- readme.md
- helm-charts
- code_of_conduct.md
jobs:
# This workflow contains a single job called "build"
buildjob:
defaults:
run:
shell: bash
name: 'Test Deleting Older Images'
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
OPENSHIFT_SERVER_URL: ${{secrets.OPENSHIFT_SERVER_URL}}
OPENSHIFT_TOKEN_DEV: ${{secrets.OPENSHIFT_TOKEN_DEV}}
OPENSHIFT_TOKEN_PROD: ${{secrets.OPENSHIFT_TOKEN_PROD}}
GHCR_USER: ${{ secrets.GHCR_USER }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
DEBUG_DEPLOY: false
steps:
- name: Deleting older images
uses: actions/delete-package-versions@v5
with:
package-name: 'smk-firewood/smk-firewood'
package-type: 'container'
token: ${{ secrets.GHCR_TOKEN }}
min-versions-to-keep: 40