Skip to content

Commit

Permalink
Adding workflow to delete untagged images in MAPDL package (#2524)
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 authored Nov 23, 2023
1 parent 6b6d3ce commit 68a3be4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker_clean_untagged.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 68a3be4

Please sign in to comment.