E5 - GitHub Actions: Write custom Javascript & Docker actions || Beginner Friendly

Опубликовано: 02 Март 2022
на канале: glich.stream
7,616
134

Learn how to write Javascript and Docker GitHub Action

Create your first custom Javascript and Docker GitHub Actions! In this episode we talk about the anatomy of a GitHub Action, the node modules needed: actions/core, actions/github and Octokit and I show you how you can craft your own custom action and publish it to the marketplace. In the second part of this episode, I show you the differences between a Javascript action and a Docker action.

▬▬▬▬▬▬ Resources & References 📕 ▬▬▬▬▬▬
- Link-/pr-comment sample repo: https://github.com/Link-/pr-comment
- Javascript action template: https://github.com/actions/javascript...
- Docker action template: https://github.com/actions/container-...
- Adopting the command design pattern for GitHub Actions: https://blog.bassemdy.com/2021/04/05/...

▬▬▬▬▬▬ Chapters 🕐 ▬▬▬▬▬▬
00:00 - Intro
01:09 - The anatomy of a GitHub Action
12:09 - Writing our Action
16:23 - Defining the interface
19:26 - Adding the core logic
39:31 - Updating the testing workflows
42:31 - Running manual tests and fixing bugs
46:39 - Creating a tag and a release
47:59 - Creating a Docker action
51:11 - Conclusion

▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬

- Twitter:   / bassemdy  
- GitHub: https://github.com/link-
- LinkedIn:   / bassemdghaidy  
- Facebook:   / bassemdy  
- Blog: https://blog.bassemdy.com

▬▬▬▬▬▬ Support the channel 💜 ▬▬▬▬▬▬

Every little bit helps ✨
- Join the journey on Patreon:   / glich_stream  
- 1 time support: https://www.buymeacoffee.com/glich.st...

#github #githubactions