Skip to content

Commit 2d300e6

Browse files
committed
Updates to exercises 1-4
1 parent 201fa8e commit 2d300e6

File tree

17 files changed

+1178
-2561
lines changed

17 files changed

+1178
-2561
lines changed

.github/workflows/pages.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Deploy Jekyll site to Pages
8+
9+
on:
10+
push:
11+
branches: ["main"]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
# Allow one concurrent deployment
23+
concurrency:
24+
group: "pages"
25+
cancel-in-progress: true
26+
27+
jobs:
28+
# Build job
29+
build:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
- name: Setup Ruby
35+
uses: ruby/setup-ruby@v1
36+
with:
37+
ruby-version: '3.1' # Not needed with a .ruby-version file
38+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
39+
cache-version: 0 # Increment this number if you need to re-download cached gems
40+
- name: Setup Pages
41+
id: pages
42+
uses: actions/configure-pages@v2
43+
- name: Build with Jekyll
44+
# Outputs to the './_site' directory by default
45+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
46+
env:
47+
JEKYLL_ENV: production
48+
- name: Upload artifact
49+
# Automatically uploads an artifact from the './_site' directory by default
50+
uses: actions/upload-pages-artifact@v1
51+
52+
# Deployment job
53+
deploy:
54+
environment:
55+
name: github-pages
56+
url: "${{ steps.deployment.outputs.page_url }}"
57+
runs-on: ubuntu-latest
58+
needs: build
59+
steps:
60+
- name: Deploy to GitHub Pages
61+
id: deployment
62+
uses: actions/deploy-pages@v1

Gemfile.lock

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
1-
GEM
2-
remote: https://rubygems.org/
3-
specs:
4-
addressable (2.8.1)
5-
public_suffix (>= 2.0.2, < 6.0)
6-
colorator (1.1.0)
7-
concurrent-ruby (1.1.10)
8-
em-websocket (0.5.3)
9-
eventmachine (>= 0.12.9)
10-
http_parser.rb (~> 0)
11-
eventmachine (1.2.7)
12-
ffi (1.15.5)
13-
forwardable-extended (2.6.0)
14-
http_parser.rb (0.8.0)
15-
i18n (1.12.0)
16-
concurrent-ruby (~> 1.0)
17-
jekyll (4.3.0)
18-
addressable (~> 2.4)
19-
colorator (~> 1.0)
20-
em-websocket (~> 0.5)
21-
i18n (~> 1.0)
22-
jekyll-sass-converter (>= 2.0, < 4.0)
23-
jekyll-watch (~> 2.0)
24-
kramdown (~> 2.3, >= 2.3.1)
25-
kramdown-parser-gfm (~> 1.0)
26-
liquid (~> 4.0)
27-
mercenary (>= 0.3.6, < 0.5)
28-
pathutil (~> 0.9)
29-
rouge (>= 3.0, < 5.0)
30-
safe_yaml (~> 1.0)
31-
terminal-table (>= 1.8, < 4.0)
32-
webrick (~> 1.7)
33-
jekyll-sass-converter (2.2.0)
34-
sassc (> 2.0.1, < 3.0)
35-
jekyll-seo-tag (2.8.0)
36-
jekyll (>= 3.8, < 5.0)
37-
jekyll-watch (2.2.1)
38-
listen (~> 3.0)
39-
just-the-docs (0.4.2)
40-
jekyll (>= 3.8.5)
41-
jekyll-seo-tag (>= 2.0)
42-
rake (>= 12.3.1)
43-
kramdown (2.4.0)
44-
rexml
45-
kramdown-parser-gfm (1.1.0)
46-
kramdown (~> 2.0)
47-
liquid (4.0.3)
48-
listen (3.7.1)
49-
rb-fsevent (~> 0.10, >= 0.10.3)
50-
rb-inotify (~> 0.9, >= 0.9.10)
51-
mercenary (0.4.0)
52-
pathutil (0.16.2)
53-
forwardable-extended (~> 2.6)
54-
public_suffix (5.0.0)
55-
rake (13.0.6)
56-
rb-fsevent (0.11.2)
57-
rb-inotify (0.10.1)
58-
ffi (~> 1.0)
59-
rexml (3.2.5)
60-
rouge (4.0.0)
61-
safe_yaml (1.0.5)
62-
sassc (2.4.0)
63-
ffi (~> 1.9)
64-
terminal-table (3.0.2)
65-
unicode-display_width (>= 1.1.1, < 3)
66-
unicode-display_width (2.3.0)
67-
webrick (1.7.0)
68-
69-
PLATFORMS
70-
arm64-darwin-21
71-
x86_64-darwin-19
72-
x86_64-linux
73-
74-
DEPENDENCIES
75-
jekyll (~> 4.3)
76-
just-the-docs (= 0.4.2)
77-
78-
BUNDLED WITH
79-
2.3.9
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.1)
5+
public_suffix (>= 2.0.2, < 6.0)
6+
colorator (1.1.0)
7+
concurrent-ruby (1.1.10)
8+
em-websocket (0.5.3)
9+
eventmachine (>= 0.12.9)
10+
http_parser.rb (~> 0)
11+
eventmachine (1.2.7)
12+
ffi (1.15.5)
13+
forwardable-extended (2.6.0)
14+
http_parser.rb (0.8.0)
15+
i18n (1.12.0)
16+
concurrent-ruby (~> 1.0)
17+
jekyll (4.3.0)
18+
addressable (~> 2.4)
19+
colorator (~> 1.0)
20+
em-websocket (~> 0.5)
21+
i18n (~> 1.0)
22+
jekyll-sass-converter (>= 2.0, < 4.0)
23+
jekyll-watch (~> 2.0)
24+
kramdown (~> 2.3, >= 2.3.1)
25+
kramdown-parser-gfm (~> 1.0)
26+
liquid (~> 4.0)
27+
mercenary (>= 0.3.6, < 0.5)
28+
pathutil (~> 0.9)
29+
rouge (>= 3.0, < 5.0)
30+
safe_yaml (~> 1.0)
31+
terminal-table (>= 1.8, < 4.0)
32+
webrick (~> 1.7)
33+
jekyll-sass-converter (2.2.0)
34+
sassc (> 2.0.1, < 3.0)
35+
jekyll-seo-tag (2.8.0)
36+
jekyll (>= 3.8, < 5.0)
37+
jekyll-watch (2.2.1)
38+
listen (~> 3.0)
39+
just-the-docs (0.4.2)
40+
jekyll (>= 3.8.5)
41+
jekyll-seo-tag (>= 2.0)
42+
rake (>= 12.3.1)
43+
kramdown (2.4.0)
44+
rexml (>=3.2.7)
45+
kramdown-parser-gfm (1.1.0)
46+
kramdown (~> 2.0)
47+
liquid (4.0.3)
48+
listen (3.7.1)
49+
rb-fsevent (~> 0.10, >= 0.10.3)
50+
rb-inotify (~> 0.9, >= 0.9.10)
51+
mercenary (0.4.0)
52+
pathutil (0.16.2)
53+
forwardable-extended (~> 2.6)
54+
public_suffix (5.0.0)
55+
rake (13.0.6)
56+
rb-fsevent (0.11.2)
57+
rb-inotify (0.10.1)
58+
ffi (~> 1.0)
59+
rexml (3.2.5)
60+
rouge (4.0.0)
61+
safe_yaml (1.0.5)
62+
sassc (2.4.0)
63+
ffi (~> 1.9)
64+
terminal-table (3.0.2)
65+
unicode-display_width (>= 1.1.1, < 3)
66+
unicode-display_width (2.3.0)
67+
webrick (1.7.0)
68+
69+
PLATFORMS
70+
arm64-darwin-21
71+
x86_64-darwin-19
72+
x86_64-linux
73+
74+
DEPENDENCIES
75+
jekyll (~> 4.3)
76+
just-the-docs (= 0.4.2)
77+
78+
BUNDLED WITH
79+
2.3.9
Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
1-
on:
2-
workflow_dispatch:
3-
inputs:
4-
appenv:
5-
type: choice
6-
description: Choose the target environment
7-
options:
8-
- dev
9-
- test
10-
- prod
11-
12-
name: Azure Bicep-Advanced
13-
jobs:
14-
build-and-deploy:
15-
runs-on: ubuntu-latest
16-
permissions:
17-
contents: read
18-
pages: write
19-
id-token: write
20-
steps:
21-
# Checkout code
22-
- uses: actions/checkout@main
23-
24-
# Log into Azure
25-
- uses: azure/login@v1
26-
with:
27-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
28-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
29-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
30-
enable-AzPSSession: true
31-
32-
# Deploy ARM template
33-
- name: Run ARM deploy
34-
uses: azure/arm-deploy@v1
35-
with:
36-
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
37-
resourceGroupName: ${{ secrets.AZURE_RG }}
38-
template: ./src/InfrastructureAsCode/main.bicep
1+
name: Azure Bicep-Advanced
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
appenv:
7+
type: choice
8+
description: Choose the target environment
9+
options:
10+
- dev
11+
- test
12+
- prod
13+
14+
jobs:
15+
build-and-deploy:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
steps:
22+
# Checkout code
23+
- uses: actions/checkout@main
24+
25+
# Log into Azure
26+
- uses: azure/[email protected]
27+
with:
28+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
29+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
30+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
31+
enable-AzPSSession: true
32+
33+
# Deploy ARM template
34+
- name: Run ARM deploy
35+
uses: azure/arm-deploy@v1
36+
with:
37+
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
38+
resourceGroupName: ${{ secrets.AZURE_RG }}
39+
template: ./src/InfrastructureAsCode/main.bicep
3940
parameters: environment=${{ github.event.inputs.appenv }}
Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
on:
2-
workflow_dispatch
3-
4-
env:
5-
targetEnv: dev
6-
7-
name: Azure Bicep
8-
jobs:
9-
build-and-deploy:
10-
runs-on: ubuntu-latest
11-
permissions:
12-
contents: read
13-
pages: write
14-
id-token: write
15-
steps:
16-
# Checkout code
17-
- uses: actions/checkout@main
18-
19-
# Log into Azure
20-
- uses: azure/login@v1
21-
with:
22-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
23-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
24-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
25-
enable-AzPSSession: true
26-
27-
# Deploy ARM template
28-
- name: Run ARM deploy
29-
uses: azure/arm-deploy@v1
30-
with:
31-
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
32-
resourceGroupName: ${{ secrets.AZURE_RG }}
33-
template: ./src/InfrastructureAsCode/main.bicep
1+
name: Azure Bicep
2+
3+
on:
4+
workflow_dispatch
5+
6+
env:
7+
targetEnv: dev
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
steps:
17+
# Checkout code
18+
- uses: actions/checkout@main
19+
20+
# Log into Azure
21+
- uses: azure/[email protected]
22+
with:
23+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
24+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
25+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
26+
enable-AzPSSession: true
27+
28+
# Deploy ARM template
29+
- name: Run ARM deploy
30+
uses: azure/arm-deploy@v1
31+
with:
32+
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
33+
resourceGroupName: ${{ secrets.AZURE_RG }}
34+
template: ./src/InfrastructureAsCode/main.bicep
3435
parameters: environment=${{ env.targetEnv }}

0 commit comments

Comments
 (0)