Docker images - Cleanup #821
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker images - Cleanup | |
| on: | |
| workflow_dispatch: | |
| schedule: # UTC at 0200 | |
| - cron: "0 2 * * *" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| cleanup: | |
| name: Cleaning unnecessary packages | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # Needed to read repository contents | |
| packages: write # Needed to delete untagged Docker images | |
| env: | |
| PACKAGE_DELETION_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: "Perform versions cleanup - except certain tags" | |
| uses: ansys/actions/hk-package-clean-untagged@3931ac9351b13ae11b1203c2ef6b51e5c75502ea #v10.2.5 | |
| with: | |
| package-name: 'mapdl' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| allow-last-days: 5 |