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 - Наука
The perfect show! More of it. Would like to see Tim talking and showing it all on containers too.
The longer episode was great 👍
Definitely a must watch for any .NET Developers new to GitHub Actions or CI/CD 👏
This was presented perfectly. Knowing about the actions folder and how it was built was very illuminating, Thanks!
Great! I was just looking for how to implement .netcore projects together with Github Actions! Thank you so much
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 👏❤
Thank you. Great episode.
This was beyond awesome, to-the-point video
Great video to get started with! Thanks! Loved it!
Great session for beginners .. Thank you
This is an excellent session. Thank you
Thanks! Sir, GREAT
Great! Just Loved it!
Love it!
hi. what's the name of the vs code extension for yml files?
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 ?
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
Real nice. Would be good to know why would anyone choose Actions over azdevops or vice versa
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.
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?
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
How to deploy an app that requires FFMPEG in App Services for Linux ??
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.
Hi all microsoft team
Please we need an application for videos like youtube rival and emulate youtube soon please
cristais paulista sp Brasil .