For the book updates and community contributions



Download 3,57 Mb.
Pdf ko'rish
bet28/49
Sana21.08.2022
Hajmi3,57 Mb.
#847402
1   ...   24   25   26   27   28   29   30   31   ...   49
Bog'liq
DevOps-for-ASP.NET-Core-Developers

Workflow structure 
Workflows are defined in YAML files, and contain several common nodes: 

a name 

a trigger, defined by an on section 

one or more job sections composed of one or more steps 

optional attributes such as environment variables 
Jobs are run on 
runners
. You can use 
hosted runners
, which are spun up by GitHub during the 
workflow and then thrown away. Hosted runners are great because you don’t have to maintain your 
own build infrastructure. For workflows that require a specific build environment, or for running 
workflows on a private network, you can also use 
private
runners. To create a private runner, install the 
runner on any machine that supports .NET. 
Each job will specify what runner GitHub should use to execute the steps. You can also specify 
dependencies between jobs using the needs attribute. Deployment jobs can also specify an 
environment to target. 
The steps node can be as easy as inline commands, or they can be actions. Most CI workflows will 
have a combination of run steps (for executing scripts) and actions. Individual actions are pulled into 
the workflow by referencing the GitHub Action repository (and optionally a tag or commit hash for 
specific versions) and specifying any parameters using the with keyword. 
Tip 
For more information, see 
GitHub Actions YAML syntax

Create a basic build workflow 
A primary principle of effective DevOps is to “build once, and deploy many times”. You’ll start by 
creating a workflow to build a basic .NET app. In the next step, you’ll publish the output to prepare for 
deployment. 
1.
Navigate to your GitHub repository and select the 
Actions
tab. 
2.
GitHub detects that there’s .NET code in the repository and suggests a .NET workflow template. 
Select 

Download 3,57 Mb.

Do'stlaringiz bilan baham:
1   ...   24   25   26   27   28   29   30   31   ...   49




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish