Skip to content

Commit 711963e

Browse files
committed
Added to last exercise
1 parent 7fe86df commit 711963e

File tree

5 files changed

+29
-16
lines changed

5 files changed

+29
-16
lines changed

content/guided-workshop/exercises/3-codespaces.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ Custom containers for GitHub Codespaces become part of the source code for the r
9595

9696
1. Note the issue for defining a codespace is no longer listed; you completed it and marked it as such with your pull request!
9797

98+
## Configuring the codespace to run your website
99+
100+
101+
98102
## Summary and next steps
99103

100104
Congratulations! You have now defined a custom development environment including all services and extensions. This eliminates the initial setup hurdle normally required when contributing to a project. Let's use this codespace to explore the code and [implement testing](./4-testing.md) for the project.

content/guided-workshop/exercises/7-create-environment.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,6 @@ You've prepped everything on both Azure and your repository, and created the wor
210210
211211
The workflow will now run and create the resources! This will take several minutes. You may need to refresh the page to see it start running. Once running, you can navigate into the workflow run to view the log and track the progress.
212212
213-
1. When the workflow completes, return to your codespace.
214-
1. Obtain the URL for the newly created Azure Container App by entering the following command in the terminal window:
215-
216-
```bash
217-
az containerapp list --query "[].properties.configuration.ingress.fqdn" -o tsv
218-
```
219-
220-
1. When prompted to install the extension, press <kbd>Enter</kbd> (or <kbd>return</kbd> on a Mac) to approve the installation.
221-
1. Note the URL provided; you'll use it in the next exercise when you deploy your website!
222-
223213
## Summary and next steps
224214
225215
Congratulations! You have new defined a workflow which uses infrastructure as code (IaC) to create the resources necessary for deployment. This allows you to quickly create a consistent environment, reducing overhead and errors. Let's close everything out by [implementing continuous deployment](8-deployment.md).

content/guided-workshop/exercises/8-deployment.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,34 @@ Because merging the workflow's [YML](https://en.wikipedia.org/wiki/YAML) into `m
9393

9494
1. Open your repository and select the **Actions** tab.
9595
1. Select **Deploy to Azure** to open the information about this workflow.
96-
1. Select the **Build and deploy Container App** step. Information about the deployment will be logged.
97-
1. When the workflow completes, all sections will automatically collapse.
98-
1. Reopen the **Build and deploy Container App** step. Note the URL displayed at the bottom, which will resemble the following: **some-url-here**.
99-
1. Navigate to the URL. Interact with your newly deployed website!
96+
1. When the workflow completes, return to your codespace.
97+
1. Obtain the URL for the newly created Azure Container App by entering the following command in the terminal window:
98+
99+
```bash
100+
az containerapp list --query "[].properties.configuration.ingress.fqdn" -o tsv
101+
```
102+
103+
1. When prompted to install the extension, press <kbd>Enter</kbd> (or <kbd>return</kbd> on a Mac) to approve the installation.
104+
1. The URL for the site you created will be displayed. If multiple are displayed, select the one which starts with the prefix you created previously.
105+
1. Select the URL and copy it to the clipboard.
106+
1. Open a new tab and enter the URL to navigate to the page.
107+
1. Your website now displays, running in the cloud!
108+
109+
![Screenshot of website showing Adoption shelter and the hours component added in a prior exercise](./images/website-screenshot.png)
100110

101111
## Summary and next steps!
102112

103-
Congratulations!! You have now explored the core components to DevOps and how GitHub can support your development lifecycle. You started by creating a repository, then enabled settings to secure your code. You created issues to track your work, created an environment in which to code, and enabled testing for continuous integration. You modified code and explored the GitHub flow. And finally you deployed your application to the cloud. Using these skills, you can continue to build and grow your knowledge of DevOps.
113+
Congratulations!! You have now explored the core components to DevOps and how GitHub can support a common development lifecycle. You started by creating a repository, then enabled settings to secure your code. You created issues to track your work, created an environment in which to code, and enabled testing for continuous integration. You modified code and explored the GitHub flow. And finally you deployed your application to the cloud. Using these skills, you can continue to build and grow your knowledge of DevOps.
104114

105-
<!-- Add deletion steps!! -->
115+
> **IMPORTANT:**: If you are no longer going to use the resources deployed to Azure, you can delete them by running the following command in the terminal window of your codespace:
116+
>
117+
> `az group delete -n pets-workshop --yes`
118+
>
119+
> The deletion of resources may take several minutes
106120

107121
## Resources
122+
123+
- [About continuous deployment](https://docs.github.com/en/actions/deployment/about-deployments/about-continuous-deployment)
124+
- [Deploy to Amazon Elastic Container Service](https://docs.github.com/en/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service)
125+
- [Deploy to Google Kubernetes Engine](https://docs.github.com/en/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine)
126+
- [GitHub Skills: Deploy to Azure](https://github.com/skills/deploy-to-azure)

content/guided-workshop/exercises/9-cleanup.md

Whitespace-only changes.
22 KB
Loading

0 commit comments

Comments
 (0)