From 68a3be42516964a06a0bf9f5d00a2b3097e1e982 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Thu, 23 Nov 2023 11:09:39 +0100 Subject: [PATCH] Adding workflow to delete untagged images in MAPDL package (#2524) --- .github/workflows/docker_clean_untagged.yml | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/docker_clean_untagged.yml 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