Skip to content

Remove untagged images #1124

Remove untagged images

Remove untagged images #1124

Workflow file for this run

---
name: CI
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
paths-ignore:
- '**.md'
schedule:
- cron: 0 0 * * *
jobs:
matrix:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.data.outputs.versions }}
contexts: ${{ steps.data.outputs.contexts }}
excludes: ${{ steps.data.outputs.excludes }}
steps:
- name: Checkout
uses: actions/checkout@main
- uses: ruby/setup-ruby@master
- name: Setup variables
id: data
run: |
echo "versions=$(bin/images --json | jq -c '.github.versions')" >> $GITHUB_OUTPUT
echo "contexts=$(bin/images --json | jq -c '.github.contexts')" >> $GITHUB_OUTPUT
echo "excludes=$(bin/images --json | jq -c '.github.excludes')" >> $GITHUB_OUTPUT
build:
needs: matrix
strategy:
fail-fast: false
matrix:
version: ${{ fromJson(needs.matrix.outputs.versions) }}
context: ${{ fromJson(needs.matrix.outputs.contexts) }}
exclude: ${{ fromJson(needs.matrix.outputs.excludes) }}
uses: ./.github/workflows/build.yml
with:
version: ${{ matrix.version }}
context: ${{ matrix.context }}
secrets: inherit
cleanup:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@main
with:
package-name: 'emacs'
package-type: 'container'
delete-only-untagged-versions: 'true'