Github Actions CI/CD - Everything you need to know to get started
HTML-код
- Опубликовано: 16 июн 2024
- I finally made a Github Actions tutorial! In this video, I go over everything you need to know to get started with Github actions. Video includes an explanation of what Github Actions is and a lab you can follow along with.
👨💻 Join our Discord Community of DevOps Engineers: / discord
🛍️ Amazon Store (homelab/youtube setup): www.amazon.com/shop/devopsjou...
☕ Buy me a coffee: www.buymeacoffee.com/bradmorg
📁 Code Available Here: github.com/devopsjourney1/myg...
📘 Chapters:
0:00 Introduction to GitHub actions
1:00 Github actions workflow file walkthrough
2:36 Github actions Lab - Creating Repo and setting up Action
4:20 Github actions Lab - Running and Troubleshooting workflows - Наука
Update: Make sure you are using v4 of Superlinter. My repo is up to date. Everything still works the same as the video.
Exceptional tutorial, just the right pace and right amount of information to get started. 🥇
Awesome tutorial man.. Really simple, but covers the basics, that I needed to get started.. Thanks for sharing:-D
Hi DJ, I am a front-end dev, but don't know much about CI/CD such as Docker, Kubernetes, or the Github Actions. However, it's time for me to learn more about it. And I found you here. I just subscribed to your channel. Thank you so much for a great video and hope I can find some more helpful content here. Thanks, man!
Very simple and but detailed explanation which make sense! Liked it. Thanks a lot!
God bless your clear explanation, at college I'm assigned a group project about Azure DevOps and this video explained CI/CD sexily well, thanks man
I have learned new thing today and it will help us to check syntax errors, formatting problems, and potential security vulnerabilities. Thanks for uploading this.
Thanks a lot! Looked for an intro video and yours is great - clear and with examples
Perfect level of introduction. Thank you.
So i was manually publishing some Python packages to pypi but didn't do it that often so forget the exact instructions each time. This is the perfect solution to automate the job. Thanks and great video!
Really clean tutorial. Hope your channel grows!!
I appreciate it!
Nice tutorial. The basics and principles are well balanced with practical examples. This is quite rare. Keep up the good work.
Glad you liked it!
Excellent step by step explanation. Thanks for the upload.
I like how this info is condensed in 12 short minutes complete with a live coding lab session.
thank you, very clear and brief explanation and examples.
Thank you !! It was really helpful to get an idea about github action.
This was really good. i realluy love this!
An excellent tutorial with an example. Thanks!
Great intro tutorial man. Thanks.
Exactly what I needed. Thanks!
You are simply awesome! Great video!
Very helpful video! Thanks
Deserves more subs! Great video.
LOVING what you are putting out. Keep rocking!!
Just a quick question, which video editing tools are you using for recording and editing your videos??
Great video, straight to the point!
Glad it helped!
Thanks for the tutorial sir ! You got a new sub here, and I got my goto channel for DevOps
Fantastic video love your teaching style super clean and informative at every step well done.
Such a good tutorial wow. Subscribed.
Great content.
Thank you!
Thanks from India. Very helpful.
Really informative.. thanks for the vid!!!
Awesome!
So nicely explained .. Thank you
My pleasure!
Super helpful thanks!!!
Good stuff!
Just what I needed :)
What would you like to see a tutorial on next?
Hi your channel is a gem. I want to be in the devOps path but still trying to make my way... Started doing bootcamp for first step, just about to finish frontend... Maybe make a video of whats best to learn next in oder to be get to devops.
Hi, hope you explain how to run play books locally using github actions on push
This is a really good tutorial. Thanks a lot for it.
yocto + Qt + UML = embedded linux
In GitHub; How would you produce a global heatmap to indicate the locations in the world from where your (open source) project has been downloaded? Is that information (IP addresses from where pulls were issued) even available (and where?)?
Great video, thanks
No problem 👍
great job man
Thanks!
Thanks. This was very understandable.
Glad it was helpful!
Perfect .Thank you .
excellent tutorial
Glad you liked it
brilliant ! thank you
Great, thank you!
Thank you !!!!
Thank ypu for posting. Is it possible to do this with a preexisting repo? If so, how can it be does safely as to not screw up the repo the preexisting repo? It would be a great tutorial.
thanks man!
Happy to help!
Hello,
How do you combine a different repo to the current repo for CI CD pipeline.?
Version 3 of the super-linter has problems. Upgrade your yml file to use version 4.
Hello and thanks for your help. When I try to run the code in github I get the below error: docker: invalid reference format: repository name must be lowercase.
Question might be little stupid but i am confused a bit.
There is a file that is available in a folder in aws and i am running a java maven project using github actions (self hosted runner on aws).
Can i directly access and read the file to use it inside my java project or do i need to write a code to connect to aws again from java.
I am new to action and confused about it.
Thanks
Hello.
How do I create several different workflows? Each one triggered with a different event.
Do I need to put each one in a different yaml and that's it?
In what order are those yaml's executed?
Very simple and useful video!
I have a question: what I have to do when some checks fail? I have to delete the failing commit and make a new one or just make a new commit to fix the checks of the failing commit? If also the new commit has some checks that failed?
Hello Mario. You should just commit new changes until the build passes. It's okay if it takes a few tries before you get your code to pass. You should never have to delete an old commit. Git is meant to keep the entire history your code went through.
The other, probably better, alternative is to set it up so that at least basic tests run on pull requests, rather than on commits. Then do your changes on a branch or fork, and propose the change as a pull request. That way if the test fails, you can push new commits to your fork/branch until everything is right. Then do a squash-merge to pull your final change onto the main branch, which will consolidate all your trial and error into a single commit. That gives you the best of both worlds: iterative development and a clean public git history. Both are important for non-trivial codebases.
Can we Rollback the Github action workflow? Please suggest
Thanks
I tried creating the workflow in another branch than main, but it doesnt show up. Do you know what the reason could be?
Nice one !
I have a query , can u pls help !
I have a request for pre-commit hook with parameters to pass. Could you please help !
2. Comma separated file paths. If the files committed are separated by commas (e.g.: c:\my folder\my files, c:\my folder\my files1), git should prevent the files from commit.
sorry.. I dont use precommit... but may use it in the future as I have heard good things.
Sorry I couldnt help!
I tried to run a very simple workflow on the Ubuntu runner, but it keeps waiting for the runner to pick it up. The workflow is really basic it runs an npm install and npm help command. I did post it on Stack overflow, but haven't got any solution. My yml file is basically a copy from the official GitHub documentation page. Is it possible that GitHub can have its runners down or unavailable ? I can't think of any other possible reason.
I got a Error: Failed to view version file:[/action/lib/functions/linterVersions.txt]
Do you know what to do?
thanks
yes
where is auto deployment part ...
Like hosting it to somewhere else
Can you please put some video on repository dispatch which can be used to send client-payload: '{"github": ${{ toJson(github) }}}'
I like punching sound in your video 😜😁😁
Pro course, industry lebel thinking
its entirely possible that in some cases your organization isn't set up to use actions and in that case you adding the files in will do nothing. Was hoping to see more on that side of things.
Can you do CI/CD with Gitlab CI? Thanks.
No
is the linter just checking for syntax then? what is the point of ci/cd if it's not doing like actual scripting checks of the actual app?
Hey Daniel, yes a linter just checks for proper syntax. Sometimes this is enough for simple repositories. If you need more tests, you would add them the same way you add the linter. Just add an additional step for each of your checks. My Jenkins video goes into more details of this as it's an hour long, this video is more of a getting started with Github actions guide.
Hope that helps!
@@DevOpsJourney great thank you!
I should have read the comments, I spent an hour on this before realizing I had to switch to v4 of the superlinter, lol I feel goofy now
The content is great. Really top notch but I cannot make it to the end of the video because of my misophonia
😂😂
Thank you for making this amazing tutorial
👍👍👍👍👍👍👍👍👍👍
is this different on Gitlab ? and if so, how is it different ? is it the setup CI/CD option ? because I have created the files and everything but it doesn't work like Github .
This is different then Gitlab, sorry I'm not too sure what you mean with your question. I hope you were able to figure it out though!
@@DevOpsJourney thank you I have actually kept researching about this and found out how to do it on Gitlab :D
I dont understand. I added the same code but it says Status Failure and nothing runs.
Do you have a link to your GitHub repo? If it's public I'll have a look
how to skip run super-linter step in a workflow run
san-tax?
"gitaction workflow not triggering" ... hehe :)
Off-topic question: Do you get a lot of compliments about your voice?
3:38 superlinter
I followed this tutorial but it failed
The tutorial is working for others. What is the problem you are running into?
Dumb question. Why do you need to check out the code?
GitHub actions runs in a Ubuntu container, it still needs to get the code, it won't be in the container by default
santax
i cant understand sir anything 🤔🤔🤔🤔🤔🤔🤔
It's a feature in GitHub that allows you to automate things after pushing your code. You may need to look at a beginners guide on git/GitHub to get up to speed
ubantu
amazing video man. I need a little help. Can't comment on public. So can you please tell me where can I contact you ? Don't worry it's related to coding only.
i make yours same but im get error. 2022-04-27 18:55:09 [FATAL] Failed to view version file:[/action/lib/functions/linterVersions.txt] pls help me
same one
same here