Closed LucasRoesler closed 3 years ago
Hi @LucasRoesler, this came up on my radar again. How does this PR now compare to the approach we took in the classic watchdog?
https://github.com/openfaas/classic-watchdog/tree/master/.github/workflows
To avoid any release tags being released which have no binaries attached due to failed builds, can you take a moment to test this with your own account and to confirm it worked as expected? The suggestion you made to template the owner makes sense.
If you need somewhere to copy/paste from see - https://github.com/alexellis/faasd-example/blob/master/.github/workflows/build.yml#L27
To avoid any release tags being released which have no binaries attached due to failed builds, can you take a moment to test this with your own account and to confirm it worked as expected? The suggestion you made to template the owner makes sense.
If you need somewhere to copy/paste from see - https://github.com/alexellis/faasd-example/blob/master/.github/workflows/build.yml#L27
I don't know how to accurately test this in my own fork. Per the comment https://github.com/openfaas/of-watchdog/pull/114#discussion_r575110205 I can't really test this in my own fork because the repos are hard coded to openfaas
If I update with your copy and paste are you going to update classic-watchdog as well?
I am not sure what you mean by "with your copy/paste"?
The idea is to have two both watchdogs build and published in a consistent way. The classic watchdog could benefit from having a generated owner name, just like you suggested.
It would be worth having both the same, but I don't know whether that's something I am going to pick up or another contributor. Whoever does it, needs to test that the change works on their fork before it gets merged - it looks bad when we have tags with no binaries attached because a build can't pass.
For tracking - https://github.com/openfaas/classic-watchdog/issues/3
Actions are enabled now, so if you can force a push, it should run.
@alexellis here is the link to the test tag image https://github.com/users/LucasRoesler/packages/container/package/of-watchdog and the release with assets https://github.com/LucasRoesler/of-watchdog/releases/tag/v0.0.6
I am not sure what you mean by "with your copy/paste"?
The idea is to have two both watchdogs build and published in a consistent way. The classic watchdog could benefit from having a generated owner name, just like you suggested.
It would be worth having both the same, but I don't know whether that's something I am going to pick up or another contributor. Whoever does it, needs to test that the change works on their fork before it gets merged - it looks bad when we have tags with no binaries attached because a build can't pass.
I mean that the classic-watchdog workflow will need to be updated to allow the repo owner to be dynamic or else these two projects will have divergent GHA workflows
FYI @techknowlogick has now updated the classic watchdog -> https://github.com/openfaas/classic-watchdog/commit/681b86125047a57349ffe1b7bfdccd567f1b4c64
Thanks for all the work you put into this @LucasRoesler - sorry that it took so long to get to it, and that we changed the approach a couple of times in the interim.
This is the tag created with the latest changes, please check it and see if it looks as expected:
https://github.com/openfaas/of-watchdog/releases/tag/0.8.3
I may need to make the matching Docker image public once it's available.
Description
Motivation and Context
Relates to openfaas/faas#1585
How Has This Been Tested?
Testing in my fork
Types of changes
Checklist:
git commit -s