kiwix / kiwix-build

Kiwix & openZIM build engine
GNU General Public License v3.0
87 stars 42 forks source link

Incorrect docker trigger on macOS #629

Closed rgaudin closed 1 year ago

rgaudin commented 1 year ago

In recent release (3.5.0-2 and alike), macos(native_static) failed trying to trigger the zim-tools docker workflow. This action fails because the GHCR_TOKEN secret is not passed to the Macos job nor the Build release step.

Currently, this workflow is triggered:

It's all OK but it means that every platform attempts to trigger this workflow while we should ideally only trigger it once. If we control the order, we'd ideally trigger it at the end. At least at the end of the linux ones as the docker images uses the uploaded linux binaries.

https://github.com/kiwix/kiwix-build/blob/1fde377a3464b8d22eebcb016a428c67393e9324/.github/scripts/build_release_nightly.py#L34-L46

mgautierfr commented 1 year ago

it means that every platform attempts to trigger this workflow while we should ideally only trigger it once.

This look like a bit as #628

mgautierfr commented 1 year ago

I have taken the liberty to partly fix this issue with #630

We would trigger the docker workflow only for context where we have a D(ocker) in the build definition.