Skip to content

move cleanup into scheduled workflow #147

move cleanup into scheduled workflow

move cleanup into scheduled workflow #147

Workflow file for this run

name: build-docker
on:
push:
workflow_dispatch:
jobs:
build-docker-normal:
uses: ./.github/workflows/build-docker-image.yml
with:
# use cache instead of main package if just testing build
registry-image: ghcr.io/cwfmf/firestarr-cpp/${{ case ( startsWith(github.ref, 'refs/tags/v') || contains('["main", "dev", "unstable"]', github.ref_name), 'firestarr', 'cache' ) }}
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:
if: ${{ startsWith(github.ref, 'refs/tags/v') || contains('["main", "dev", "unstable"]', github.ref_name) }}
needs: [build-docker-normal]
uses: ./.github/workflows/build-docker-image.yml
with:
registry-image: ghcr.io/cwfmf/firestarr-cpp/firestarr
image: firestarr-minimal
cache-from: "type=registry,ref=ghcr.io/cwfmf/firestarr-cpp/cache:"
suffix: "minimal"