Untagged images #122
Workflow file for this run
This file contains 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
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright 2021 Intel Corporation | |
name: Delete untagged images | |
on: | |
schedule: | |
- cron: '0 0 * * SUN' | |
workflow_dispatch: | |
jobs: | |
purge-image: | |
name: Delete image from ghcr.io | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: ["bess_build", "upf-epc-bess", "upf-epc-pfcpiface"] | |
steps: | |
- name: Delete image | |
uses: bots-house/ghcr-delete-image-action@3827559c68cb4dcdf54d813ea9853be6d468d3a4 | |
with: | |
# NOTE: at now only orgs is supported | |
owner: omec-project | |
name: upf-epc/${{ matrix.package }} | |
# NOTE: using Personal Access Token | |
token: ${{ secrets.CR_PAT }} | |
untagged-keep-latest: 1 |