How To Deploy Your Application To Azure Using GitHub Actions | CI/CD Pipeline

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

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

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

    Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
    Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt

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

    Hi Milan, I discovered your channel a few weeks ago and am totally enthusiastic. That's why I immediately became a Patreon member to support your excellent work - and of course to have access to your source code 😉.
    With your targeted and concise way you fill exactly the knowledge gaps that certainly very many of us (I mean experienced developers especially in enterprise area) currently - still - have, without going to the absolute beginner level every time. I know what I am talking about, I have been in the business for over 30 years.
    Above all, this saves numerous trial & error rounds and thus precious time. You get a very good foundation from which you can then go deeper.
    Your short videos were in many cases already much more valuable and substantial for me than many an hour-long tutorial in Pluralsight, Udemy or here in TH-cam.
    It assumes a lot of knowledge and also practical experience. But that's what makes your content so valuable for many developers. Straight to the point, the essential knowledge, perfect! Every minute of your videos is worth its weight in gold. Your speed is no problem at all, thanks to TH-cam. 😊
    Please keep doing exactly what you're doing. I'm already really looking forward to what's to come. It will be a feast!
    Cheers, Felix.

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

      Hi Felix,
      I had a rough day yesterday and saw your comment in the evening. It's an understatement to say that you cheered me up a little. 😊
      I really appreciate your kind words, and promise to keep on making good videos (and improving with each one).
      Stay awesome!

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

    the best explanation about CI/CD Pipeline using GitHub Actions! Thanks Milan 🙂

  • @db81zg
    @db81zg 10 หลายเดือนก่อน +1

    odličan video Milane - kratko, jasno i efikasno. 🚀

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

    Love your videos. It's great that you put the Azure topic on the table. Wait for more!

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

      Thanks, Radek. Is Azure your primary choice?

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

      @@MilanJovanovicTech if you think about a cloud provider - yes, Azure is my primary choice

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

    I was just thinking to create a video on the same subject and I found yours. Now I gave up my idea as I think you created an even better from the one I could have created.

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

      There's never enough videos on a topic, trust me!

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

    Keep up the good work man, great job ❤️❤️

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

    it is a tip-top explanation, thanks a bunch Milan!

  • @bhargavisathish5062
    @bhargavisathish5062 4 หลายเดือนก่อน +1

    Amazing job @Milan! Very well explained at right pace.

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

    Awesome video as always. Good job

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

    Another comprehensive but concise tutorial - thanks

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

    Awesome video!!! Clear and very easy to follow and to the point. 3 thumbs up 🙂

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

      Thank you so much! 😊

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

      @@MilanJovanovicTech Is there a way to create an azure publish profile from the yaml file directly rather than first creating it in azure and then using it in yaml?

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

    Thank you so much Milan I need it because today I have setup Azure server for the API and was thinking how to use CI/CD pipline.
    🥰

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

      If you're using GitHub, it should be straightforward 😁

  • @respectandcare-e7g
    @respectandcare-e7g 2 ปีที่แล้ว +18

    Nice Video Millan. Following the same series, how about next on CI/CD using Azure DevOps with different environments and their respective appsettings/keyvaults configurations? 😊😊

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

      I'll think about it, not a bad idea

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

      I would welcome something similar or just general guidance on dealing with multiple environments and how this is managed within the code / config

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

    It was very very good video. Thank you Milan !

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

    Awesome comprehensive video. Thanks for the information. 👏👏👏

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

    Very useful video. Def saved for later use, will come in handy I am sure.

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

    Great informative video! To the point. thanks.

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

    A video about testing + code coverage report configuration in CI/CD pipeline would be delightful!

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

      I did something with CodeCov because it was free, so might do that 🤔

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

      I completely agree. Shall we look forward to it?

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

    Definitely this will force me to move my Github projects to Azure :)

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

    I really like your enthusiasm ! thank you !

  • @simonegiuliani4913
    @simonegiuliani4913 11 หลายเดือนก่อน +1

    Thanks Milan!

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

    Milan, amazing work. Can you let me know if you are planning to have that video where you cover the unit tests and coverage bits as well using github actions. Again, amazing work.

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

      Thanks for reminding me about that, I'll work on something :)

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

    Awesome Video !! keep it up ..

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

    Great 🚀🚀! Git hub code will always helpful to all .
    need project using clean architecture sessions A to Z with CI/CD. 😁

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

      Care to explain more what kind of project you want to see?

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

    i like your videos , you have a great content , i consider you as my mentor

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

    Exceptional videos.
    Would like to request for higher resolution for future videos 🙂

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

      What do you mean by higher resolution? 🤔
      It's 1920x1080

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

      @@MilanJovanovicTech
      2K & 4K
      I do understand export time will be very high.
      If it's too much of time consuming then we don't mind 1080p, your content is more important than the resolution 🙂

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

    Awesome same as always 👍

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

    Thanks, your config worked

  • @AKASHDPakash
    @AKASHDPakash 6 หลายเดือนก่อน

    Good one Milan.

  • @harrylyod3402
    @harrylyod3402 10 หลายเดือนก่อน +1

    hi, will love to see the step where you add the test too. thanks

  • @musaddiqueansari7695
    @musaddiqueansari7695 4 หลายเดือนก่อน

    Great explanation

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

    Another banger video! You should do a Azure Repos version! nonetheless good work !

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

      Bangers is all I produce 😂
      I have to add Azure DevOps to the list it seems, it was asked more than once.

  • @thanhlongnguyenpham9675
    @thanhlongnguyenpham9675 7 หลายเดือนก่อน

    Thank you so much for sharing your knowledge

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

    Great 👍👍

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

    Hi milan,
    You did a great video CI/CD.
    and Please do video on database configurations and own domain addition for accessing deployed api.

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

    Thanks for this Video. I subscribed and liked your video. Do you have one for running tests and seeing the coverage as you mentioned in this video?

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

      I recorded one this week, but it won't come out until a few weeks from now :) Though I was using the ReSharper code coverage tool.
      You can also use SonarQube for that.

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

      I use Resharper and DotCover for seeing that in the IDE. I wanted to be able to see it in some report on the build so therefore in the github action workflow running the tests on a PR for example.
      Thank you for your videos. They are simple and to the point so that you get something working and then just develop from there according to your needs.

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

      @@valy_berea I built something like that before with CodeCov 😁 I'll make a video about it then!

  • @EdsonYamamoto
    @EdsonYamamoto 2 หลายเดือนก่อน

    thanks for the tutorial.

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

    Thank you for this video

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

    What do you prefer? Publishing as "code" or a docker container? I'm sure it's easier to develop locally using docker, but does it make a difference when deploying to azure?

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

      You can deploy an image and run it inside a container

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

      @@MilanJovanovicTech When would you decide to deploy an image instead of the code approach in the video? I know the advantages of docker when running locally, as well as deploying it to hosting services that don't have native .NET support, so you just spin up the container. But on azure?

  • @Muhammadnaeem-nj6pk
    @Muhammadnaeem-nj6pk 9 หลายเดือนก่อน +1

    Hi @MilanJovanovicTech That is a really good video. Love to see it

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

    Didn't smash the like button but Milan got the strength to finish the video anyway
    Just joking, take my like ;-)

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

      Thanks Marcus 🤣
      I had a few sips of coffee, and that got me throuhh

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

    would love to add deployment through docker images part as well

    • @MilanJovanovicTech
      @MilanJovanovicTech  8 หลายเดือนก่อน +1

      That'd be interesting for a future video

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

      @@MilanJovanovicTech just waiting whether you will use self-hosted runner or some external action like "appleboy/ssh-action". plus please cover SSH deployment instead of azure app service

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

    Hi Milan!
    Can U video about what is your choice about implementing background task ?
    Have U ever use hangfire ?

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

      I have a video about the Outbox pattern using Quartz, check that out

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

    simple explanitaion and easy to follow, but my project requires other micro services and consul like containers. How to do it with this?

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

    Thank you!!

  • @MateStier-hd4nv
    @MateStier-hd4nv 11 หลายเดือนก่อน +1

    What ticketing system do you prefer?:D

    • @MilanJovanovicTech
      @MilanJovanovicTech  11 หลายเดือนก่อน

      Don't prefer any of them, but I've used Jira most often

  • @ChrisDev-wi9rl
    @ChrisDev-wi9rl ปีที่แล้ว +1

    Hi Milan, great video. I am building on the solution to include github secrets to create secure app accessible environment variables for my firebase config and more. Struggling to get the variables to flow through - have you done anything similar?

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

      Yeah. They should be accessible via {{secrets.YOUR_SECRET_NAME}}

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

    nice one

  • @ifixedit8307
    @ifixedit8307 6 หลายเดือนก่อน

    Hi Milan, thanks for the great video. Just a quick clarification if you don't mind. Did you create the package path or does it exist somewhere with your working directory?

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

    Hi, is it possible to automate the step to get publish profile. Manually adding the publish profile is tedious task if we have alot of web apps

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

      I'm not sure, to be honest. I don't know a way out of the box.

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

    Hello friend, conrgrats for your video.
    I followed this one, and i get an error, such as:
    Error: Deployment Failed with Error: Error: No package found with specified pattern: ./publish
    How to know What the specifict path is? how to recognize it?
    I hope your answer,

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

      Looks like something with the .yml file?
      dotnet publish is expecting something in the ./publish path, but there isn't anything there.

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

      ​@@MilanJovanovicTech Hello Milan, thanks for your quick response. I could resolved that.
      Milan in some part of your video, you explained about the second part of video. This part is relationed to testing project.
      Can you share me that video. On the other hands, you have some video about setup database?
      I hope your answers.
      Regards,
      Nelson

  • @stephen9646
    @stephen9646 9 หลายเดือนก่อน +1

    Hi Milan is it possible to deploy a .NET core Web API built with clean architecture without using CI/CD Pipeline?

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

    Hi Milan, thank you for the awesome toutrials, I almost watched all your youtube videos in a couple days
    I have a question on CI/CD, can I apply the same steps to publish web API project into virual machine and that app hosted on IIS?
    Currently, I'm publishing the app manually using visual studio, can I apply the same GitHub aciton to publish it instead of manually doing it, because visual studios uses publish profile as well to publish into VM
    Thank you, keep being awesome

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

      The last step is using a GitHub action the deploy to Azure.
      You will need something different to deploy to IIS. Maybe this can be helpful:
      devopsjournal.io/blog/2020/11/24/github-actions-with-private-runner-iis

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

      @@MilanJovanovicTech Thank you appreciate your effort, will check it out

  • @RichardOmarFernándezCruzado
    @RichardOmarFernándezCruzado 2 หลายเดือนก่อน

    Perfect !!

  • @abdulkabeer7953
    @abdulkabeer7953 10 หลายเดือนก่อน

    Hello Milan, this is really a gem and I followed your video and went very close to the deployment on Azure. I watched your video very carefully and when I go to download the publish profile from my Microsoft Azure account it showed a message that "Basic Authentication is disabled.". So kindly help me out with this. Thanks

    • @MilanJovanovicTech
      @MilanJovanovicTech  10 หลายเดือนก่อน

      No idea, to be honest. How is that possible if you're logged into Azure?

    • @abdulkabeer7953
      @abdulkabeer7953 10 หลายเดือนก่อน

      @@MilanJovanovicTech Yeah I figured out the issue and resolved it. Thanks for your instant reply.

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

    What about uploading and downloading artifacts? What are they and when to use them?
    Actually i want to setup this for an umbraco project. And i wanna know the pest way to do this and ways for cost cutting in azure?

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

      Well this is the base case, for a more complex scenario you'd need to customize it

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

      @@MilanJovanovicTech thank you very much this also worked for me, actually my project was deployed using ci cd as well i had an issue when browsing tha app, it showed 500 then i added some environment variable too display proper error details and eventually it was related to a project not referring properly so fixed it

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

      @@MilanJovanovicTech
      Can u please make a series on azure. Your videos are simple to understand. I love them.. Infact everyone loves them.
      I have an umbraco project to be deployed on azure.. And i am new to all this. Wanna learn load balancing etc
      Cost cuts

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

    Hi Milan,
    I really like your videos, Can you do the same for AWS ec2 (linux/windows) as well?

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

    Hello Milan, i need a little help about deployment.
    I have a dotnet web api project which I use docker compose for deploymet. In compose file i defined my app and sql server db as containers. I wanna deploy this project on Azure via github actions. How workflow file should be defined ? Thanks

  • @stevejackson2643
    @stevejackson2643 4 หลายเดือนก่อน

    Hi Milan. It builds fine, but now I get the error "Unable to resolve action actions/webapps-deploy, repository not found"

    • @MilanJovanovicTech
      @MilanJovanovicTech  4 หลายเดือนก่อน

      I think you have to target the latest version: azure/webapps-deploy@v2

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

    Something were wrong with me, the azure function is deleting itself after the action is complete:(

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

      How is that possible? 🤔

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

      @@MilanJovanovicTech idk I try deploying with vsc and then with github actions and that's happened. And I did in that way because the GitHub actions doesn't finish as well with the .zip package

  • @stevejackson2643
    @stevejackson2643 4 หลายเดือนก่อน

    I tried to deploy using azures wizard for github. It spits out a nice pipeline on github but I just get an error that project file is not found. Do you HAVE to use a solution file with GitHub actions or should it also work with csproj files?

    • @MilanJovanovicTech
      @MilanJovanovicTech  4 หลายเดือนก่อน

      Maybe the file paths are wrong/missing? You could also try it with a .sln file and see if it makes a difference

    • @stevejackson2643
      @stevejackson2643 4 หลายเดือนก่อน

      @@MilanJovanovicTech I have triple checked file paths, everything seems to be in order. This worked previously with a Azure Devops Git repo -> Azure with just csproj file and I havent changed any paths, so its probably a requirement from Github actions that the solution file is there. Will let you know

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

    Thank you

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

    how to separate them into different jobs publish and another implement? I tried to do it but I have an Error: Deployment Failed, Error: No package found with specified pattern: ./publish

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

      What are we separating exactly?

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

      @@MilanJovanovicTech Deployment

  • @obeddougan1505
    @obeddougan1505 6 หลายเดือนก่อน +1

    Please how can I deploy my DDD project to azure

    • @MilanJovanovicTech
      @MilanJovanovicTech  6 หลายเดือนก่อน

      Did you watch the video?

    • @obeddougan1505
      @obeddougan1505 6 หลายเดือนก่อน

      Yes please i have deployed d project but i am faci g method not allowed and internal server error after
      But works normal on my local pc

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

    How to become a patreon member?

  • @finiskyyy
    @finiskyyy 11 หลายเดือนก่อน +1

    Hello guys! Am I the only one who gets an error saying "Deployment Failed, Error: Publish profile is invalid for app-name and slot-name provided." with this code? I'm pretty sure I configured everything the way Milan did. Cheers from Bosnia! ☺

    • @MilanJovanovicTech
      @MilanJovanovicTech  11 หลายเดือนก่อน

      The source code for this video is public: github.com/m-jovanovic/ci-cd-example
      Did you add the publish profile as a secret?

    • @finiskyyy
      @finiskyyy 11 หลายเดือนก่อน

      @@MilanJovanovicTech I looked into the source code you kindly provided and followed your steps to a letter. I've read that the slug name plays some role in this so i added it as well ("production" seems to be the default). No amount of researching seems to help. Thank you for your response!

    • @omaralaaelzanaty5017
      @omaralaaelzanaty5017 9 หลายเดือนก่อน

      I have the same error and couldn't fix it ,can i have any help please

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

    Hi @Milan Jovanović
    I would to ask if it is possible deploying multiple Service that are within one Solution. Do we use the same method that you have used here?

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

      Yes, but you'll need separate Azure App Service instance + publish profiles in the build pipeline.

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

    Why not Azure DevOps CI/CD...

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

      GitHub is my repository of choice, so it made sense to use GitHub Actions

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

    thank you, save me

  • @pragmatic-pr
    @pragmatic-pr 6 หลายเดือนก่อน

    helpful

  • @alishahryarymasterpars7165
    @alishahryarymasterpars7165 4 หลายเดือนก่อน

    How can I buy your packages??
    I'm currently in Iran. can I buy your package with USDT??

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

    🚀

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

    I have tried this but won't work

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

      What's not working?

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

      @@MilanJovanovicTech when cicd runs it deploys whole code insted of its build/published items.

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

    Deploy Your Application To Iis Using GitHub Actions

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

      Check this? github.com/marketplace/actions/iis-deploy

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

    Bro i had some probelms with "actions/webapps-deploy@v2". "azure/webapps-deploy@v2" works for me.

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

    Thanks for this video Milan