diff --git a/.github/workflows/docker_clean_untagged.yml b/.github/workflows/docker_clean_untagged.yml new file mode 100644 index 0000000000..570418c642 --- /dev/null +++ b/.github/workflows/docker_clean_untagged.yml @@ -0,0 +1,29 @@ +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: + contents: write + packages: write + +jobs: + cleanup: + name: Cleaning unnecessary packages + runs-on: ubuntu-latest + env: + PACKAGE_DELETION_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + steps: + + - name: "Perform versions cleanup - except certain tags" + uses: ansys/actions/hk-package-clean-untagged@v4 + with: + package-name: 'mapdl' + token: ${{ secrets.GITHUB_TOKEN }} + allow-last-days: 5 \ No newline at end of file