Skip to content

Commit 10bf8e9

Browse files
Implement bicep bootstrap (#119)
# Pull Request ## Description Add Bicep bootstrap capability while maintaining the legacy option in the short term. e2e tests for this branch: https://github.com/Azure/accelerator-bootstrap-modules/actions/runs/9860809478 ## License By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license. --------- Co-authored-by: Zach Trocinski <ztrocinski@outlook.com>
1 parent eb8c819 commit 10bf8e9

File tree

93 files changed

+3584
-477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+3584
-477
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
---
12
# To get started with Dependabot version updates, you'll need to specify which
23
# package ecosystems to update and where the package manifests are located.
34
# Please see the documentation for all configuration options:
45
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
56

67
version: 2
78
updates:
8-
- package-ecosystem: "nuget" # See documentation for possible values
9-
directory: "/src/ALZ" # Location of package manifests
9+
- package-ecosystem: "nuget" # See documentation for possible values
10+
directory: "/src/ALZ" # Location of package manifests
1011
schedule:
1112
interval: "daily"

.github/linters/.markdown-lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
###########################
3+
###########################
4+
## Markdown Linter rules ##
5+
###########################
6+
###########################
7+
8+
# Linter rules doc:
9+
# - https://github.com/DavidAnson/markdownlint
10+
#
11+
# Note:
12+
# To comment out a single error:
13+
# <!-- markdownlint-disable -->
14+
# any violations you want
15+
# <!-- markdownlint-restore -->
16+
#
17+
18+
###############
19+
# Rules by id #
20+
###############
21+
MD004: false # ul-style - Unordered list style
22+
MD007:
23+
indent: 2 # ul-indent - Unordered list indentation
24+
MD013:
25+
line_length: 500 # line-length - Line length
26+
MD026:
27+
punctuation: ".,;:!。,;:" # no-trailing-punctuation - Trailing punctuation in heading
28+
MD029: false # ol-prefix - Ordered list item prefix
29+
MD033: false # no-inline-html - Inline HTML
30+
MD036: false # no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading
31+
MD041: false # first-line-heading/first-line-h1 - First line in a file should be a top-level heading
32+
33+
#################
34+
# Rules by tags #
35+
#################
36+
blank_lines: false # MD012, MD022, MD031, MD032, MD047

.github/linters/.yaml-lint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
# 500 chars should be enough, but don't fail if a line is longer
6+
line-length:
7+
max: 500
8+
level: warning
9+
truthy:
10+
check-keys: false
11+
level: warning

.github/prerelease-drafter.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name-template: '$RESOLVED_VERSION-alpha'
23
tag-template: '$RESOLVED_VERSION-alpha'
34
prerelease: true
@@ -14,7 +15,7 @@ categories:
1415
- title: '🧰 Maintenance'
1516
label: 'chore'
1617
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
17-
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
18+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
1819
version-resolver:
1920
major:
2021
labels:
@@ -29,4 +30,4 @@ version-resolver:
2930
template: |
3031
## Changes
3132
32-
$CHANGES
33+
$CHANGES

.github/release-drafter.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name-template: '$RESOLVED_VERSION'
23
tag-template: '$RESOLVED_VERSION'
34
categories:
@@ -13,7 +14,7 @@ categories:
1314
- title: '🧰 Maintenance'
1415
label: 'chore'
1516
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
16-
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
17+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
1718
version-resolver:
1819
major:
1920
labels:
@@ -28,4 +29,4 @@ version-resolver:
2829
template: |
2930
## Changes
3031
31-
$CHANGES
32+
$CHANGES

.github/workflows/Prerelease.yml

Lines changed: 59 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Prerelease Build
23

34
on:
@@ -20,62 +21,62 @@ jobs:
2021
runs-on: ubuntu-latest
2122
steps:
2223
# Drafts your next Release notes as Pull Requests are merged into "master"
23-
- name: Check out repository
24-
uses: actions/checkout@v3
25-
with:
26-
fetch-depth: 0
27-
- name: Display the path
28-
shell: pwsh
29-
run: echo ${env:PATH}
30-
- name: Version Display
31-
shell: pwsh
32-
run: $PSVersionTable
33-
- name: Bootstrap
34-
shell: pwsh
35-
run: ./actions_bootstrap.ps1
36-
- name: Test and Build
37-
shell: pwsh
38-
run: Invoke-Build -File .\src\ALZ.build.ps1
39-
- name: Upload pester results
40-
uses: actions/upload-artifact@v3
41-
with:
42-
name: pester-results
43-
path: .\src\Artifacts\testOutput
44-
if-no-files-found: warn
45-
- name: Upload zip module archive build
46-
uses: actions/upload-artifact@v3
47-
with:
48-
name: zip-archive
49-
path: .\src\Archive
50-
if-no-files-found: warn
51-
- uses: release-drafter/release-drafter@v5
52-
id: create_release
53-
with:
54-
config-name: prerelease-drafter.yml
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
- name: Package ALZ Module
58-
shell: pwsh
59-
run: |
60-
$tag_version = "${{ steps.create_release.outputs.tag_name }}".Replace("-alpha", "")
61-
./package_ALZ.ps1 -version $tag_version -prerelease alpha
62-
- uses: montudor/action-zip@v1
63-
with:
24+
- name: Check out repository
25+
uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
28+
- name: Display the path
29+
shell: pwsh
30+
run: echo ${env:PATH}
31+
- name: Version Display
32+
shell: pwsh
33+
run: $PSVersionTable
34+
- name: Bootstrap
35+
shell: pwsh
36+
run: ./actions_bootstrap.ps1
37+
- name: Test and Build
38+
shell: pwsh
39+
run: Invoke-Build -File .\src\ALZ.build.ps1
40+
- name: Upload pester results
41+
uses: actions/upload-artifact@v3
42+
with:
43+
name: pester-results
44+
path: .\src\Artifacts\testOutput
45+
if-no-files-found: warn
46+
- name: Upload zip module archive build
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: zip-archive
50+
path: .\src\Archive
51+
if-no-files-found: warn
52+
- uses: release-drafter/release-drafter@v5
53+
id: create_release
54+
with:
55+
config-name: prerelease-drafter.yml
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
- name: Package ALZ Module
59+
shell: pwsh
60+
run: |
61+
$tag_version = "${{ steps.create_release.outputs.tag_name }}".Replace("-alpha", "")
62+
./package_ALZ.ps1 -version $tag_version -prerelease alpha
63+
- uses: montudor/action-zip@v1
64+
with:
6465
args: zip -qq -r ALZ.zip ALZ
65-
- uses: actions/upload-release-asset@v1.0.1
66-
env:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68-
with:
69-
upload_url: ${{ steps.create_release.outputs.upload_url }}
70-
asset_path: ./ALZ.zip
71-
asset_name: ALZ.zip
72-
asset_content_type: application/zip
73-
- uses: eregon/publish-release@v1
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
with:
77-
release_id: ${{ steps.create_release.outputs.id }}
78-
- name: Publish ALZ Module
79-
shell: pwsh
80-
run: |
81-
Publish-Module -Path "./ALZ" -NuGetApiKey ${{ secrets.POWERSHELL_GALLERY_KEY }} -ReleaseNotes "${{ steps.create_release.outputs.body }}" -Force
66+
- uses: actions/upload-release-asset@v1.0.1
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
with:
70+
upload_url: ${{ steps.create_release.outputs.upload_url }}
71+
asset_path: ./ALZ.zip
72+
asset_name: ALZ.zip
73+
asset_content_type: application/zip
74+
- uses: eregon/publish-release@v1
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
with:
78+
release_id: ${{ steps.create_release.outputs.id }}
79+
- name: Publish ALZ Module
80+
shell: pwsh
81+
run: |
82+
Publish-Module -Path "./ALZ" -NuGetApiKey ${{ secrets.POWERSHELL_GALLERY_KEY }} -ReleaseNotes "${{ steps.create_release.outputs.body }}" -Force

.github/workflows/PullRequest.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Pull Request Validator
23
on:
34
pull_request:
@@ -12,27 +13,27 @@ jobs:
1213
strategy:
1314
fail-fast: false
1415
matrix:
15-
pwsh: [ '7.1.3' ]
16+
pwsh: ['7.1.3']
1617
steps:
17-
- name: Check out repository
18-
uses: actions/checkout@v3
19-
with:
20-
fetch-depth: 0
21-
- name: Display the path
22-
shell: pwsh
23-
run: echo ${env:PATH}
24-
- name: Version Display
25-
shell: pwsh
26-
run: $PSVersionTable
27-
- name: Bootstrap
28-
shell: pwsh
29-
run: ./actions_bootstrap.ps1
30-
- name: Test and Build
31-
shell: pwsh
32-
run: Invoke-Build -File .\src\ALZ.build.ps1
33-
- name: Upload pester results
34-
uses: actions/upload-artifact@v3
35-
with:
36-
name: pester-results
37-
path: .\src\Artifacts\testOutput
38-
if-no-files-found: warn
18+
- name: Check out repository
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
- name: Display the path
23+
shell: pwsh
24+
run: echo ${env:PATH}
25+
- name: Version Display
26+
shell: pwsh
27+
run: $PSVersionTable
28+
- name: Bootstrap
29+
shell: pwsh
30+
run: ./actions_bootstrap.ps1
31+
- name: Test and Build
32+
shell: pwsh
33+
run: Invoke-Build -File .\src\ALZ.build.ps1
34+
- name: Upload pester results
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: pester-results
38+
path: .\src\Artifacts\testOutput
39+
if-no-files-found: warn

0 commit comments

Comments
 (0)