Replies: 3 comments
-
|
There was an issue reported in Nov 2024 with a similar failure:
It'd be helpful if you shared what version of the action you were using. The related code for that mentioned fix was to fallback to metadata-action/src/context.ts Lines 121 to 136 in ed95091 I'm not familiar enough with Act or that Octokit action (which does have docs about configuration for proxy servers), but it might be a common enough in actions that I expect if your self-hosted setup has a compatible API that you can have traffic directed there instead. In this case it's logic to get the commit date for
For this action, the default There's a separate function used instead when you have metadata-action/src/context.ts Lines 83 to 90 in ed95091 |
Beta Was this translation helpful? Give feedback.
-
|
I also wonder if local testing is possible. But it seems not to work. Even though I set "context: git" |
Beta Was this translation helpful? Give feedback.
-
|
@diktamxx I forked this action and removed all of the dependencies on GitHub specifically. It is a 100% compatible drop in replacement as I did not change any functionality. Feel free to give it a try: https://github.com/LiquidLogicLabs/git-action-docker-metadata |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking to understand if there is a way to use this action without being connected. I am using act as a locally runner and when I try to execute the metadata action I get an error about not being able to get the commit date. Shouldn't it get that from the local git log rather than reaching out to github?
This is what has me thinking its reaching out:
[Docker Build/build] [DEBUG] 💬 ::debug::Failed to get commit date from GitHub API: Not FoundNote - I have tried setting the context to "workflow" and that didn't seem to help.
Beta Was this translation helpful? Give feedback.
All reactions