From the course: .NET Microservices for Azure Developers
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Modifying the workflow to create the container images - Azure Tutorial
From the course: .NET Microservices for Azure Developers
Modifying the workflow to create the container images
- [Instructor] Even though we have the Azure credential secret in the GitHub repo, we'll use the username and password that we obtain from the Azure Container Registry resource to push the image. So let's navigate to Settings, and then let's expand Secrets and variables and then Actions. Here, we need to create a new repository secret, and let's name it, say, ACR_LOGIN_SERVER. And I'm going to paste the login server that we obtain, which is this one, and then add the secret. Now, let's create the username, ACR_USERNAME, and then the username is wpmacr, and finally, the password, so ACR_PASSWORD, and I'm going to copy the text and paste it right here. So this is a password, and we can add the secret. So with those secrets in place, we're ready to modify the workflow file to build and push the container image. So we can do that by navigating to Actions, and here we can view the workflow file, and then edit the file right here in the browser, or you can use Visual Studio. So let's open…
Contents
-
-
-
-
-
Creating the service principal and configuring the repo2m 40s
-
(Locked)
Creating a workflow to log into Azure3m 23s
-
(Locked)
Creating the Azure Container Registry resource2m 3s
-
(Locked)
Creating the Dockerfile in Visual Studio1m 52s
-
(Locked)
Modifying the workflow to create the container images4m 55s
-
(Locked)
Challenge: Formatting the container image tags1m 19s
-
(Locked)
Solution: Formatting the container image tags1m 21s
-
-
-
-