Skip to content

optional cache-to/from #101

optional cache-to/from

optional cache-to/from #101

Workflow file for this run

name: build-docker
on:
push:
branches: [ "main", "dev", "unstable" ]
tags: [ "*" ]
workflow_dispatch:
jobs:
build-docker-normal:
uses: ./.github/workflows/build-docker-image.yml

Check failure on line 11 in .github/workflows/build-docker.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-docker.yml

Invalid workflow file

error parsing called workflow ".github/workflows/build-docker.yml" -> "./.github/workflows/build-docker-image.yml" (source branch with sha:99f10d2270e0c59948e845dbabffc236a75d8018) : (Line: 74, Col: 23): Unexpected symbol: '${{'. Located at position 27 within expression: case ( inputs.cache-from, ${{ env.PLATFORM_PAIR, (Line: 75, Col: 21): Unexpected symbol: '${{'. Located at position 25 within expression: case ( inputs.cache-to, ${{ env.PLATFORM_PAIR
with:
image: firestarr
cache-from: type=registry,ref=ghcr.io/cwfmf/firestarr-cpp/cache
cache-to: type=registry,mode=max,ref=ghcr.io/cwfmf/firestarr-cpp/cache
build-docker-minimal:
needs: [build-docker-normal]
uses: ./.github/workflows/build-docker-image.yml
with:
image: firestarr-minimal
cache-from: type=registry,ref=ghcr.io/cwfmf/firestarr-cpp/cache
cleanup-docker-cache:
needs: [build-docker-minimal]
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
delete-tags: "*-*"
# dry-run: true
# FIX: leave firestarr alone for now since it has the history of things from the start
# packages: firestarr,firestarr-cpp/firestarr
packages: firestarr-cpp/cache
validate: true
delete-untagged: true
delete-ghost-images: true
delete-partial-images: true
delete-orphaned-images: true