-
Notifications
You must be signed in to change notification settings - Fork 36
Use docker run instead of extra docker build #5
Conversation
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
I am not sure if the steps in GitHub Action can be cached? Logseq build itself will take around 12 minutes, which means if use native workflow a single publish will take at least 12 minutes, compared to ~2 min with the dockerized approach. |
Yes. GHA supports cache some specified paths, is it enough? Maybe we can cache the build result of logseq? |
I think one approach is to have two workflows which are similar to the two docker file approach:
|
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Maybe it's better for us to just |
Signed-off-by: Xuanwo <[email protected]>
Ah, in some of my early attempts I did not manage to run the script outside of a docker build. 😂 |
I didn't have a good idea on how to handle different versions of Here are some quick ideas:
|
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
I think we can keep it simple for now.
The user can choose which version of Logseq in his workflow but I guess it does not make much difference though. So I guess we can choose a version for them. |
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
The build result of test can be downloaded here: https://github.com/pengx17/logseq-publish/suites/4886440556/artifacts/139968121 I think this PR is almost ready for review! PTAL @pengx17 |
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
I try to add |
Great! I will take a look today |
I think your approach works fine. I have tested to load a graph with a single |
Signed-off-by: Xuanwo <[email protected]>
It's quiet strange that the output index.html is empty. |
I have successfully published my graph using your refactored solution |
Signed-off-by: Xuanwo <[email protected]>
All reviews have been addressed. @pengx17 PTAL. |
Oops, closed? |
Sorry, miss clicked the wrong button ... Can you reopen a new PR? |
Thanks to git 😆 |
This PR is a try to remove the docker build steps.