Untagged images #164
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-present Intel Corporation | |
name: Untagged images | |
on: | |
schedule: | |
- cron: '0 0 * * SUN' | |
workflow_dispatch: | |
jobs: | |
purge-image: | |
name: Delete image from ghcr.io | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'omec-project' | |
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.GH_OMEC_PAT }} | |
untagged-keep-latest: 1 |