Learn how to deploy .NET Core apps to Azure with GitHub Actions | Azure Friday

Поделиться
HTML-код
  • Опубликовано: 28 май 2024
  • GitHub Actions makes it easy to automate all your software workflows. Tim Heuer joins Scott Hanselman to saunter through the process of deploying .NET Core apps to Azure using GitHub Actions.
    0:00 - Overview
    0:19 - Project setup
    4:02 - Configuring the workflow
    7:29 - Build job - setting up the environment
    13:18 - Build job - configuring the build
    16:07 - Getting the publish profile from Azure
    17:45 - Build job - handling secrets
    20:37 - Build job - deploying to Azure
    22:34 - Actions tab in GitHub and workflow log review
    24:59 - Adding artifacts to the job
    27:59 - Wrap-up
    ◉ GitHub Actions on GitHub - aka.ms/azfr/638/01
    ◉ GitHub Actions Documentation - aka.ms/azfr/638/02
    ◉ .NET Core overview - aka.ms/azfr/638/03
    ◉ Azure Web Apps - aka.ms/azfr/638/04
    ◉ GitHub Action to setup .NET Core SDK - aka.ms/azfr/638/05
    ◉ Deploy to Azure using GitHub Actions - aka.ms/azfr/638/06
    ◉ ASP.NET Core Deployment sample - aka.ms/azfr/638/07
    ◉ Blazor Wasm Deployment sample - aka.ms/azfr/638/08
    ◉ Create a free account (Azure Friday) - aka.ms/azfr/638/free
    For Česky, Deutsch, Español, Français, Italiano, 日本語, 한국어, Polski, Português, Русский, Türkçe, 简体中文, and 繁體中文, watch on Channel 9: aka.ms/azfr/638
    #Microsoft #Azure
  • НаукаНаука

Комментарии • 25

  • @martinkarlsson6429
    @martinkarlsson6429 3 года назад

    The perfect show! More of it. Would like to see Tim talking and showing it all on containers too.

  • @russellmccloy
    @russellmccloy 3 года назад +2

    The longer episode was great 👍

  • @luiscreates
    @luiscreates Год назад

    Definitely a must watch for any .NET Developers new to GitHub Actions or CI/CD 👏

  • @mwonsil
    @mwonsil 3 года назад

    This was presented perfectly. Knowing about the actions folder and how it was built was very illuminating, Thanks!

  • @christiangrimberg
    @christiangrimberg 3 года назад

    Great! I was just looking for how to implement .netcore projects together with Github Actions! Thank you so much

  • @elrashidco
    @elrashidco 3 года назад

    just wow , thank you both , the info just got directly to my cortex 🧠,simply and beautifully explained , i hop you will both have a good friday 👏❤

  • @wechulipaul
    @wechulipaul 3 года назад +1

    Thank you. Great episode.

  • @gauravraw
    @gauravraw 2 года назад

    This was beyond awesome, to-the-point video

  • @Mookhtiaradam
    @Mookhtiaradam 3 года назад

    Great video to get started with! Thanks! Loved it!

  • @amaladiraviyam2256
    @amaladiraviyam2256 2 года назад

    Great session for beginners .. Thank you

  • @rawKatana
    @rawKatana 3 года назад

    This is an excellent session. Thank you

  • @papachoudhary5482
    @papachoudhary5482 3 года назад +1

    Thanks! Sir, GREAT

  • @saddamhossaindotnet
    @saddamhossaindotnet 3 года назад

    Great! Just Loved it!

  • @nimbledonut
    @nimbledonut 3 года назад

    Love it!

  • @fader5260
    @fader5260 3 года назад

    hi. what's the name of the vs code extension for yml files?

  • @developerjsnischaya9861
    @developerjsnischaya9861 2 года назад

    21:22 What is @v1 on line number? Did you mean the version tag? if so, shouldn't that be v2 as you want to build v2 tag ?

    • @developerjsnischaya9861
      @developerjsnischaya9861 2 года назад

      Answering my own question, that is the tag version of the github action's repo that you want to use. I misunderstood it as a branch/tag of my own code repo that I am applying this yml to

  • @jabrouni2
    @jabrouni2 3 года назад

    Real nice. Would be good to know why would anyone choose Actions over azdevops or vice versa

    • @timheuer
      @timheuer 3 года назад +1

      When we have choices with multiple tools this is always a question. I'll give some perspective. If your code/team/workflow/issues are very GitHub-specific it feels more natural to have your automation close to your code, so this makes Actions a great choice in my opinion in these cases. Your code is on GitHub, you can automate your workflows on GitHub, you can also deploy your artifacts on GitHub (GitHub Package Repository). If you are using Azure DevOps for your code/workflow, it might make sense to keep those similar things there as well (Pipelines/Artifacts). At present DevOps also provides some approval-based options with regard to automation (can hold a release waiting for an email approval for example) that are nice. I suspect people will (or have?) created Actions to enable similar things as well.
      In the end, they serve similar goals of automating aspects of your devops flow. I think Actions will continue to mature and if you are a GitHub project, it's a great solution for you to keep all your 'stuff' under that umbrella. Happy to poke at specifics if you'd like.

  • @biplovkc4100
    @biplovkc4100 3 года назад

    Got two questions
    1. What if I have a Web app running on net5 and other Web app running on net core 3.1
    2. What if I have docker compose file which does restore build and publish
    How would github action change based on aforementioned scenarios? Any links or videos I could follow?

    • @timheuer
      @timheuer 3 года назад

      Hi Biplov! THanks for the question...let me try to attack this.
      1. If you have two apps in your solution that's fine. We recommend using the latest SDK to build your apps and is down-level capable of building (meaning the .NET5 SDK can build a 3.1 app). So you could specify 5.0.x as the SDK to use and still build/publish both apps just fine. Alternatively you *can* have the action get both SDKs and build, then switch, then build.
      2. If you have a docker file for your app, this would follow a different mechanism as your docker file may be doing the build, etc. Take a look at this example (it's a Blazor Wasm app) that shows a docker deploy in actions. github.com/timheuer/blazor-deploy-sample/blob/master/.github/workflows/azure-app-svc-linux-container.yml

  • @Rodrick.
    @Rodrick. 3 года назад

    How to deploy an app that requires FFMPEG in App Services for Linux ??

    • @timheuer
      @timheuer 3 года назад

      I assume you need the ffmpeg tools on the image. I've not seen an Action that does that specifically, but you can run any shell commands, so I would assume this would involve running curl and a few things to get the bits you need and execute some setup/config.

  • @luxuryviplifestyle9494
    @luxuryviplifestyle9494 3 года назад

    Hi all microsoft team
    Please we need an application for videos like youtube rival and emulate youtube soon please

  • @edimarribeirodasilva5391
    @edimarribeirodasilva5391 3 года назад

    cristais paulista sp Brasil .