For the book updates and community contributions


Actions tab. Select the .NET workflow in the list of  workflows. At the top of the list of runs, you’ll see the  Run workflow



Download 3,57 Mb.
Pdf ko'rish
bet39/49
Sana21.08.2022
Hajmi3,57 Mb.
#847402
1   ...   35   36   37   38   39   40   41   42   ...   49
Bog'liq
DevOps-for-ASP.NET-Core-Developers

Actions
tab. Select the .NET workflow in the list of 
workflows. At the top of the list of runs, you’ll see the 
Run workflow
button. If you select it, you 
can choose the branch to run the workflow against and queue it: 
Figure 13:
Manual dispatch. 


61 
CHAPTER 3 | Continuous integration and deployment with Azure DevOps 
Handle environment configuration 
Your workflow is deploying the same binary to each environment. This concept is important to ensure 
that the binaries you test in one environment are the same that you deploy to the next. However, 
environments typically have different settings like database connection strings. You want to ensure 
that the DEV app is using DEV settings and the PROD app is using PROD settings. 
For this simple app, there’s no database connection string. However, there’s an example configuration 
setting that you can modify for each environment. If you open the 
simple-feed-
reader/SimpleFeedReader/appsettings.json
file, you’ll see that the configuration includes a setting for 
the Header text on the Index page: 
"UI":
{
"Index"
:
{
"Header"
:
"Simple News Reader"
}
}
,
To show how environment configuration can be handled, you’re going to add a secret to each 
environment and then substitute that value into the settings as you deploy. 
Add environment secrets 
1.
On your repository, select 
Settings

Environments

PRE-PROD

2.
Select 
Add secret
and add a secret called index_header with the value PRE PROD News Reader. 
Select 
Add secret



62 
CHAPTER 3 | Continuous integration and deployment with Azure DevOps 
Figure 14:
Add an environment secret. 
1.
Repeat these steps to add a secret called index_header with the value PROD News Reader for 
the PROD environment. 
2.
If you select 

Download 3,57 Mb.

Do'stlaringiz bilan baham:
1   ...   35   36   37   38   39   40   41   42   ...   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