Skip to content

Untagged images

Untagged images #59

# 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