Closed pedro-gutierrez closed 4 years ago
@pedro-gutierrez You need to add a checkout action to your workflow so it checks out your repo.
Here's an example of that: https://github.com/rberrelleza/actions-test/blob/master/.github/workflows/main.yaml
I'll update the sample to include this for clarity.
Ah thanks a lot! As you can see, I am pretty new to GitHub Actions. It works great ! thank you
We're all learning together!
I was wondering if it would make sense to add an option so that we can trigger a kubectl rollout restart <resource> <name>
? I am probably taking shortcuts, but this could simplify some early/dev workflows where we are intentionally overwriting docker images with the tag :latest
for instance.
Yeah, I think that's a good idea. Do you think we should keep it here, or as a separate action?
I'm also working on a 'pipeline' action, maybe that's a better fit for this kind of actions?
A separate action is better, you are right. And pipeline action sounds even more powerful.
Implementing https://github.com/okteto/pipeline/ , we can discuss specifics there!
I updated the sample here to add the checkout task for future users, so I'll go ahead and close this, but feel free to reopen (or file a new one) if you hit something else.
My repo at https://github.com/pedro-gutierrez/elementary.git has a
k8s.yml
manifest. I've successfully tested It both locally and in Okteto Cloud.I've configured this simple workflow https://github.com/pedro-gutierrez/elementary/blob/master/.github/workflows/okteto.yml
but it seems it can't find the k8s.yml file:
Full run at: https://github.com/pedro-gutierrez/elementary/runs/1063263773?check_suite_focus=true