GitLab CI/CD pipeline for React projects (GitLab + React + Netlify)

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 มิ.ย. 2024
  • In this tutorial, we will take a look at how to create a simple CI/CD pipeline for a React project using GitLab CI pipelines. After the build process, we will get into how to deploy every change to Netlify.
    🔻 Click on SHOW MORE 🔻
    cli.netlify.com/commands/deploy/
    cli.netlify.com/commands/sites
    --
    ⭐️ Video contents ⭐️
    ⌨️ 00:00 - Introduction
    ⌨️ 01:00 - Manual build process.
    ⌨️ 02:55 - Automated build process.
    ⌨️ 15:10 - Manual deployment to Netlify
    ⌨️ 16:46 - Automated deployment.
    ⌨️ 27:11 - Conclusion
    --
    ⭐️ 🎓 GitLab CI/CD ONLINE COURSE ⭐️
    Want to learn more about CI/CD pipelines? Check my GitLab CI online course.
    Get it at a special price and help support this TH-cam channel:
    www.vdespa.com/courses
    --
    ⭐️ 💬 I have a question. ⭐️
    I do my best to answer all comments here on TH-cam but I cannot make any guarantees.
    If you are asking a question, make sure to include as many details as possible.
    --
    ⭐️ 💡 I have a video idea ⭐️
    Do you want me to create a video on a specific topic? Just fill out the form below:
    forms.gle/uWEzXFQ2viJtZtvZ7
    --
    ⭐️ 📺 Learn GitLab on TH-cam ⭐️
    Collection of video tutorials:
    ▸ Learn GitLab CI:
    • Gitlab
    ___
    ⭐️ 📕 Free resources ⭐️
    📌 Official Gitlab CI documentation
    docs.gitlab.com/
    📌 DevOps with Valentine
    / devops-with
    --
    ⭐️ 📩 Contact & Imprint ⭐️
    👉 Follow me on Twitter:
    / vdespa
    👉 Follow me on Medium:
    / vdespa
    👉 Follow me on Facebook:
    / valentin-despa-1130381...
    👉 Let's connect on LinkedIn:
    / vdespa
    vdespa.com/imprint
    __

ความคิดเห็น • 72

  • @vdespa
    @vdespa  3 ปีที่แล้ว +3

    👉 Want to learn more about CI/CD and DevOps? Check my Gitlab CI online course.
    vdespa.com/courses/

  • @arihantjain8347
    @arihantjain8347 ปีที่แล้ว +1

    Thank you Valentin!
    The kind of Valentine we all want..
    Everything including the errors that could come were being shown and tackled!

    • @vdespa
      @vdespa  ปีที่แล้ว +1

      You are welcome. Thank you for leaving a comment.

  • @leslie-bc3lq
    @leslie-bc3lq 5 หลายเดือนก่อน +1

    Your tutorial is really friendly for a new-starter of deployment and Gitlab like me. Thanks for making this video!

    • @vdespa
      @vdespa  5 หลายเดือนก่อน

      Glad to hear that! You are welcome. Thank you for leaving a comment.

  • @fashiondiylady
    @fashiondiylady ปีที่แล้ว +3

    Thank you so much Valentin. This helped me to learn git , pipelines and to deploy my first website. You just cleared up all my confusions points. I had always coded never done these steps before so I always felt like I don't know something which always made me upset whenever I said I am a web developer. Now I learned a lot from this and read through things while learning. And finally I am a confident web developer. Thank you so much

    • @vdespa
      @vdespa  ปีที่แล้ว

      Great to hear that. You are welcome. Thank you for leaving a comment.

  • @rajatchaudhari1228
    @rajatchaudhari1228 2 ปีที่แล้ว +7

    Worked like a charm! Thanks ✨

  • @SailorSwiftStyle
    @SailorSwiftStyle 2 ปีที่แล้ว +4

    You are an Amazing teacher! Thanks for this making this!!

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Thanks ☺️

  • @jasontaylor312
    @jasontaylor312 2 ปีที่แล้ว +1

    This tutorial was kind of perfect. Thank you

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Thanks, i am glad it helped!

  • @LaLaJi.football
    @LaLaJi.football ปีที่แล้ว +3

    This is really insightful and detailed for a newbie like me. Love this video man!!! :)

    • @vdespa
      @vdespa  ปีที่แล้ว +2

      Glad it was helpful! You are welcome. Thank you for leaving a comment.

  • @vipul338
    @vipul338 3 ปีที่แล้ว +3

    Very well explained. Thanks for sharing 👍

    • @vdespa
      @vdespa  3 ปีที่แล้ว +1

      Glad it was helpful!

  • @marx2951
    @marx2951 2 ปีที่แล้ว +1

    Dude, I think I've seen an other one of your videos. You popped up in a search for GitLab and Heroku pipeline. I wanted to mention that your thumbnail looks well done and inviting. I'm sure I'll be back. Thanks, human.

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Thanks, Marx.

  • @antonioteixeira1779
    @antonioteixeira1779 2 ปีที่แล้ว

    Great tutorial. Thanks from Brazil!!

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      You are welcome! I am glad that you liked it.

  • @darshanpoojari9294
    @darshanpoojari9294 8 หลายเดือนก่อน

    Good and Detailed Explaination...🤩

    • @vdespa
      @vdespa  8 หลายเดือนก่อน

      Glad you liked it You are welcome. Thank you for leaving a comment.

  • @rodrigues19625
    @rodrigues19625 ปีที่แล้ว +1

    Thanks a lot Valentin. God Bless You!

    • @vdespa
      @vdespa  ปีที่แล้ว

      You are most welcome! You are welcome. Thank you for leaving a comment.

  • @mohammaddarbandi6285
    @mohammaddarbandi6285 2 ปีที่แล้ว +1

    Thank you for your good training

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      You're welcome!

  • @johnjohn7023
    @johnjohn7023 3 ปีที่แล้ว

    awesome!

  • @bricegnanago409
    @bricegnanago409 2 ปีที่แล้ว +1

    So good! Thank you so much 🙏. I subscribe now

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Thanks, Brice!

  • @rjcdz06
    @rjcdz06 ปีที่แล้ว +1

    Excellent 👏👏👏

    • @vdespa
      @vdespa  ปีที่แล้ว

      Thank you! Cheers!

  • @AbdulWahid-di8ym
    @AbdulWahid-di8ym 2 ปีที่แล้ว +1

    very good tutorial

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Many many thanks

  • @saracamilalauramanzaneda2776
    @saracamilalauramanzaneda2776 2 ปีที่แล้ว +1

    :3 at last I understand. Ty
    I wasn’t able to understand anything that my DevOps teacher said.

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Great to hear, thanks for letting me know. Maybe you should take a DevOps course from me 😂

  • @adeliocastro6797
    @adeliocastro6797 ปีที่แล้ว +1

    Muito bom! obrigado.

    • @vdespa
      @vdespa  ปีที่แล้ว +2

      Você é bem vindo. Obrigado por deixar um comentário.

  • @bo_ver4628
    @bo_ver4628 2 ปีที่แล้ว +1

    Thank you for this video! The great one! Have a question, is there some way not to run repeatedly "npm install" on stages to make pipelines faster?

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Yes, you can uses caches.

  • @frenchmike
    @frenchmike ปีที่แล้ว +1

    so if we used npm, we replace all your yarn commands with npm ?

    • @vdespa
      @vdespa  ปีที่แล้ว

      Yes, you need to replace them.

  • @favasali9991
    @favasali9991 2 ปีที่แล้ว

    @Valentin Despa
    Is netlify keys added - authorization token, and siteid added in the settings>ci/cd will suffice to run the netlify command? These keys are no where used in the script or commands in yml file. Is this handled by GitLab implicitly?

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      If you name the keys properly, it will be enough. The CLI command will pick this up.

    • @julioaguilar3067
      @julioaguilar3067 2 ปีที่แล้ว

      @@vdespa is there any pattern to name it inorder cli to pick this up automatically ?

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      @@julioaguilar3067 There is not pattern. It has to be exactly as shown in the video.

  • @Shou06
    @Shou06 3 ปีที่แล้ว +1

    this implementation is for static site but how should we implement for dynamic site ?

    • @vdespa
      @vdespa  3 ปีที่แล้ว +1

      It depends on the programming language/ technology and where you want to deploy it.

    • @Shou06
      @Shou06 3 ปีที่แล้ว

      @@vdespa thanks

  • @palasolanki9286
    @palasolanki9286 ปีที่แล้ว

    without runner register how your pipline work
    ?

  • @craftzki8784
    @craftzki8784 ปีที่แล้ว

    Hi valentine, how do I stop my dev branch push to start running jobs. I only want to run jobs for master branch.

    • @vdespa
      @vdespa  ปีที่แล้ว

      You may want to look into only/expect or rules keywords.

  • @muhammadokta3576
    @muhammadokta3576 3 หลายเดือนก่อน

    Hallo sir, please help me, im get error Error: Site not found. Please rerun "netlify link"

  • @S4NTIS0
    @S4NTIS0 5 หลายเดือนก่อน

    I still dont understand if you have to pass a password through a variable, how can I add that to the .gitlab-ci.yml editor?

  • @nayeeminamdar4781
    @nayeeminamdar4781 ปีที่แล้ว

    Hi can you upload realtime projects

  • @TSYPapplication
    @TSYPapplication ปีที่แล้ว

    Sir I use my Local gitlab runner
    i have this issue Error: Unable to open browser automatically: Running inside a docker container
    You are now logged into your Netlify account!
    Run netlify status for account details
    To see all available commands run: netlify help
    › Error: Site not found
    Can you help me with this please

  • @ganguly_ari
    @ganguly_ari ปีที่แล้ว

    I keep getting an EACCES error which says "The operation was rejected by your operating system." Can you please help me solving the issue ?

    • @vdespa
      @vdespa  ปีที่แล้ว

      Please see if this helps:
      docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally/

  • @nirmesh44
    @nirmesh44 2 ปีที่แล้ว

    i formation. Please please make some more detailed video on gitlab-ci.yml

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      I have a full GitLab CI course that can help you understand how to manage .gitlab-ci.yml files.

  • @sivas4861
    @sivas4861 ปีที่แล้ว +1

    Hi I have seen your videos at Udemy look super ! could you please try to make a one pipeline for react JS with docker containerization _.gitlab.ci.yml in GitLab.

    • @vdespa
      @vdespa  ปีที่แล้ว

      Thanks for the idea, will do!

  • @ananyamishra7896
    @ananyamishra7896 2 ปีที่แล้ว

    Hello @Valentin Despa
    I took your Gitlab CI CD course on Udemy
    The content was so good and so helpful as well.
    Just one issue I'm facing with respect to CI. I'm trying to install python packages using pip install command behind my company's proxy server for that I'm receiving 'proxy error' I tried to resolve the issue using export proxy HTTPS & HTTP but no luck

    • @vdespa
      @vdespa  2 ปีที่แล้ว +1

      Thanks for your kind words. In regards to your issue, is the runner on your computer?

    • @ananyamishra7896
      @ananyamishra7896 2 ปีที่แล้ว

      @@vdespa No I'm using a shared runner, but I suppose there is no issue with the runner because I'm able pull images

    • @vdespa
      @vdespa  2 ปีที่แล้ว +1

      @@ananyamishra7896 I am not sure what the company proxy has to do with the shared runner.

    • @ananyamishra7896
      @ananyamishra7896 2 ปีที่แล้ว

      @@vdespa Thank you for your response :)

  • @user-io3pb8fx5y
    @user-io3pb8fx5y ปีที่แล้ว

    Hello guys. Am I the only who has issue with auth?

  • @amin001001
    @amin001001 ปีที่แล้ว +1

    Very good tutorial. Thank you.
    I wanted to ask how to condition the build to test stage?
    If the test stage fails, would it go ahead and do the other ones?

    • @vdespa
      @vdespa  ปีที่แล้ว +1

      Good question. By default, if one stage fails, the rest of the stages are not executed.