Automatic Deployment With Github Actions
Agile Coach, ARTIFICIAL INTELLIGENCE, Block chain, Business Analyst BA, DATA science, Development, Devops Automation, Dotnet, Education, Free Job training and assistance, Information, Infrastructure automation, Interview questions, JAVA, jobs, Learn, Machine learning, Python Automation, QA Automation, RPA Automation, SAP crm, Scrum master Agile, Skill, UI Design May 10, 2022 43 Comments
In this video we will setup automatic deployments using Github Actions.
Anson’s YouTube Channel:
https://www.youtube.com/user/DatAdam93
Github Actions Page:
https://github.com/features/actions
Timestamps:
0:00 – Introduction & Demo
3:07 – Setting up Github Actions
4:07 – Setting up Workflow File
8:07 – Setting up Github Action Runner
14:37 – Setting up NGINX
21:09 – Pointing domain to our Server
22:17 – React Routing with NGINX
22:52 – Setting up Expressjs API
30:14 – Proxy Passing with NGINX
39:04 – Setting up Server Block
40:53 – Securing our Website
source
Leave us a comment Cancel reply
COMMON QUESTIONS
Categories
- Agile Coach
- ARTIFICIAL INTELLIGENCE
- Block chain
- Business Analyst BA
- DATA science
- Development
- Devops Automation
- Dotnet
- Education
- Free Job training and assistance
- Information
- Infrastructure automation
- Interview questions
- JAVA
- jobs
- Learn
- Machine learning
- Python Automation
- QA Automation
- RPA Automation
- SAP crm
- Scrum master Agile
- Skill
- UI Design
- Uncategorized
FREQUENTLY ASKED QUESTIONS
We use cookies to provide you with the best possible user experience. By continuing to use our site, you agree to their use. Learn more
43 Comments
zada sellers
May 10, 2022 00:27 amDo you have any video on how to autodeploy it on google cloud?
ClarkF
May 10, 2022 00:27 amNice tutorial – really; but it should be renamed to Automatic Deployment with NGINX 🙂
yanis benslimane
May 10, 2022 00:27 amThis is the best video EVERR !!!! THANKKKSS
Daniel Lindegren
May 10, 2022 00:27 amGreat tutorial. It should be `location /api/ { rewrite … }` with the trailing slash. If you leave it off, '/apifhjbcfdh' gets rewritten.
Manju Shree
May 10, 2022 00:27 amIs it possible to do automatic deployment for Oracle Database using GITHUB actions
r3d0c
May 10, 2022 00:27 amtry using darkmode..
Huyen Nguyen
May 10, 2022 00:27 amThanks for the helpful video!
Pepe Calixto
May 10, 2022 00:27 amI think I'm not the only one feeling this way but… If our startups "shine" in the near future it will be because of people like Brad and Anson! Great Tutorial!
Alexis Otaño
May 10, 2022 00:27 amDude! This shouldn't be called github actions, This is "how to setup your whole life" ! Amazing video!
People And Lifestyle
May 10, 2022 00:27 amNice and really helpful for JavaScript. How can one do similar automation with django?
Pedro Alvarez
May 10, 2022 00:27 amThis video is so helpful thanks!
sagar lama
May 10, 2022 00:27 amWhile running tests on the actual server, wouldn't it make the server slower?
Is there a way to build the files on the action and just copy the built files to the server?
Rinto Exandi Sinaga
May 10, 2022 00:27 amThanks for the good work, it's very detailed and helpful. Keep up.
Tim MR
May 10, 2022 00:27 amThank you for this video, helped me setup actions for the first time. Very good.
Jainmiah Shaik
May 10, 2022 00:27 amI'm getting this error. What it is. Error: ./setup.sh: line 23: [: /home/jainmiah/actions-runner/cd: binary operator expected
basedonprinciple
May 10, 2022 00:27 amWhat does it mean to run self-hosted vs. ubuntu? Is there a basic distinction for how the runner and the app's scripts interface?
Mr. Norris
May 10, 2022 00:27 amawesome
Sohanur Rahman
May 10, 2022 00:27 amI have implemented ci/cd successfully following this tutorial….but i'm facing a problem regarding env variable….my project depends on .env file and as i can't keep the env file in my repo obviously….so how can i generate .env file from github action so everytime i push i don't have to create .env file manually?
Phú Võ
May 10, 2022 00:27 amGreat video! Thank you
domemvs
May 10, 2022 00:27 amNice demonstration. I don't think it's a good practice to make your production server a gh actions runner.
Harikrushna Patel
May 10, 2022 00:27 amDone ✅ I implemented successfully. Thank you 😊
Below asmelash Gebremaraim Genrezabher
May 10, 2022 00:27 amEwe Anne Asmelash Gebremariam Tigraway Eye sellam nialemna yiminey
Starwave
May 10, 2022 00:27 amNever delete this video… Bookmarked for life!
Lekky Jayz
May 10, 2022 00:27 am@09:00 How did you set up "the other" terminal? No prior mention of it, just jumped into it. Not too helpful for beginners.
Harry try
May 10, 2022 00:27 amBRINGING A GUN for a FIST FIGHT – SICK OF ALL THS GITHUB IDIOTS
Иван Иванченко
May 10, 2022 00:27 amhow to protect some files from being overwritten?
Yasin Bikmazer
May 10, 2022 00:27 amNice Shot ! I've been looking for this for few days. Thank You !
Omran Khoja
May 10, 2022 00:27 amI keep getting a `Main process exited, code=exited, status=203/EXEC` error when I run sudo ./svh.sh start. Runner is on CentOS server on DigitalOcean. Any idea what I can do?
Saya Look
May 10, 2022 00:27 amgreat video !
Cloud Training For Ethusiast AWS
May 10, 2022 00:27 amAwesomeness Fabulous… Thanks for this video
Hagis
May 10, 2022 00:27 amDoes the solution break if the build step will not success? For te react app, when GA detect push, the runner will purge the local files and try to build the app. If the build fails, the files will be broken and nginx will serve broken site. Am I wrong? Or the react cares about broken builds and do not touch the output directory until it is sure that the build will work?
Chris Hammock
May 10, 2022 00:27 amthis is great.
Michael Ogbuma
May 10, 2022 00:27 amThis guy is just amazing ❤️❤️❤️
Nikos Spiropoulos
May 10, 2022 00:27 amwhy shouldnt we install globally pm2 inside the server with the sudo command?
isaiaseg
May 10, 2022 00:27 amThank you very much! I had already my server in the root of my instance, and the /actions-runner folder is created in there as well, then when you make your first "deploy" with the actions, it creates again the repo within the /actions-runner folder. So i had to kill all processes from the server i had before, remove it and then i was able to see the actual server attached to the action deploys runining with the changes made on the master branch. Just in any case you guys have the same issue
✌️
Allauddin Yousafxai
May 10, 2022 00:27 amThank you. You made my Day ♥️ ♥️ ♥️ ♥️
Gurpreet Singh
May 10, 2022 00:27 amhi i have setup the same application on my centos server its working fine till my terminal is alive. but once i close the terminal it stop .. and i have to run everytime npm stat in my project how can i run it with out terminal
Mansoor’s Tech
May 10, 2022 00:27 ami was trying to do the same thing using web-hooks, for a .net project. but i see the GitHub actions are more convenient way to do this kind CICD. This tutorial is really cool. Thanks to Traversy Media and specially Anson and Brad. Superb job.
chuks olloh
May 10, 2022 00:27 amHi Brad. Thanks for the lessons. My question is, I host on Digital ocean. Do I regard it as a self-hosted?
Utkarsh Kukreti
May 10, 2022 00:27 amThanks for the tutorial.
Very tough to follow along. So many diversions without background explanations. Not suitable for someone who wants to learn this thing from scratch. Might be helpful for someone with prior knowledge
Reggie Escobar
May 10, 2022 00:27 amNice.
Abhibhaw Asthana
May 10, 2022 00:27 amHey, How do we handle env files through this then? I am trying to create env with github secrets but it's creating the variables with empty data. Any idea?
vamsi krishna
May 10, 2022 00:27 amHelp me what is the path setting in nginx server for laravela application ?