Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement bicep bootstrap #119

Merged
merged 50 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
06e98ab
Updates to support Bicep bootstrap
jaredfholgate Jun 24, 2024
e9cf744
Latest changes for Bicep support
jaredfholgate Jun 24, 2024
bacb6f6
Update to use new config file structure
jaredfholgate Jun 26, 2024
1b059be
Updates and fixes
jaredfholgate Jun 26, 2024
1c2681f
Bug fixes and starter name
jaredfholgate Jun 26, 2024
f8d2f2f
Tidy more files
jaredfholgate Jul 1, 2024
d10e0dc
Fail silently for AZ and improve Bicep file removal
jaredfholgate Jul 8, 2024
c7e1647
Limit attempts on input for automation
jaredfholgate Jul 9, 2024
59f9a21
Retain template parameter files
jaredfholgate Jul 9, 2024
e0a3cc0
Migrate docs and begin imroving. First class input file support.
jaredfholgate Jul 10, 2024
d1297dd
Add super linter
jaredfholgate Jul 10, 2024
210588f
Merge branch 'main' into implement-bicep-bootstrap
jaredfholgate Jul 10, 2024
e16888f
Update sidebar
jaredfholgate Jul 10, 2024
942ebfb
Transparent background
jaredfholgate Jul 10, 2024
1255a78
Small logo
jaredfholgate Jul 10, 2024
4dd2e1f
Update GitHub
jaredfholgate Jul 10, 2024
829be58
Update links
jaredfholgate Jul 10, 2024
e774646
Updated input files
jaredfholgate Jul 10, 2024
9594486
Update links to inputs
jaredfholgate Jul 10, 2024
bbc1b5e
Update Bicep starter module
jaredfholgate Jul 10, 2024
fd87cf2
Fix table
jaredfholgate Jul 10, 2024
cfbeedb
More table real estate
jaredfholgate Jul 10, 2024
e2c8061
Head size
jaredfholgate Jul 10, 2024
d874e4f
Shorten variable name
jaredfholgate Jul 10, 2024
e7f11e5
Add local docs
jaredfholgate Jul 10, 2024
eecb04f
Tidy
jaredfholgate Jul 10, 2024
3868545
Tidy
jaredfholgate Jul 10, 2024
e88ec3f
fix linting
jaredfholgate Jul 10, 2024
974b803
Fix linting
jaredfholgate Jul 10, 2024
dd091b4
Final linting fixes
jaredfholgate Jul 10, 2024
3466632
Fix local titles
jaredfholgate Jul 10, 2024
d7e52a4
Tidy doc
jaredfholgate Jul 10, 2024
5e38f8f
Add Terraform retry loop
jaredfholgate Jul 11, 2024
d055f2a
Tidy logs
jaredfholgate Jul 11, 2024
088a0c2
Make upgrade process nicer
jaredfholgate Jul 11, 2024
3eaebd4
Add timers for info
jaredfholgate Jul 11, 2024
2b0c28a
Updates to wiki for directory paths for inputs.yaml
oZakari Jul 11, 2024
987f64e
Fix example template
jaredfholgate Jul 11, 2024
5eeba69
Add on demand folder support
jaredfholgate Jul 12, 2024
4f739ac
Fix destroy retry loop
jaredfholgate Jul 12, 2024
12b34af
Add Windows ARM support
jaredfholgate Jul 15, 2024
57941e2
Support for Windows arm64
jaredfholgate Jul 15, 2024
d759213
Merge branch 'main' into implement-bicep-bootstrap
jaredfholgate Jul 15, 2024
83b8470
Merge branch 'main' into implement-bicep-bootstrap
jaredfholgate Jul 15, 2024
5953a1e
Replace exit with return
jaredfholgate Jul 18, 2024
62078ca
Set availability zones using standard parameter support
jaredfholgate Jul 18, 2024
582454a
Update docs to support az location update
jaredfholgate Jul 18, 2024
c12d882
Fix e2e tests
jaredfholgate Jul 18, 2024
68bbe84
Fix tests
jaredfholgate Jul 18, 2024
d1b031d
Fix Bicep multi-region support
jaredfholgate Jul 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "nuget" # See documentation for possible values
directory: "/src/ALZ" # Location of package manifests
- package-ecosystem: "nuget" # See documentation for possible values
directory: "/src/ALZ" # Location of package manifests
schedule:
interval: "daily"
36 changes: 36 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
###########################
###########################
## Markdown Linter rules ##
###########################
###########################

# Linter rules doc:
# - https://github.com/DavidAnson/markdownlint
#
# Note:
# To comment out a single error:
# <!-- markdownlint-disable -->
# any violations you want
# <!-- markdownlint-restore -->
#

###############
# Rules by id #
###############
MD004: false # ul-style - Unordered list style
MD007:
indent: 2 # ul-indent - Unordered list indentation
MD013:
line_length: 500 # line-length - Line length
MD026:
punctuation: ".,;:!。,;:" # no-trailing-punctuation - Trailing punctuation in heading
MD029: false # ol-prefix - Ordered list item prefix
MD033: false # no-inline-html - Inline HTML
MD036: false # no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading
MD041: false # first-line-heading/first-line-h1 - First line in a file should be a top-level heading

#################
# Rules by tags #
#################
blank_lines: false # MD012, MD022, MD031, MD032, MD047
11 changes: 11 additions & 0 deletions .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
extends: default

rules:
# 500 chars should be enough, but don't fail if a line is longer
line-length:
max: 500
level: warning
truthy:
check-keys: false
level: warning
5 changes: 3 additions & 2 deletions .github/prerelease-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name-template: '$RESOLVED_VERSION-alpha'
tag-template: '$RESOLVED_VERSION-alpha'
prerelease: true
Expand All @@ -14,7 +15,7 @@ categories:
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
Expand All @@ -29,4 +30,4 @@ version-resolver:
template: |
## Changes

$CHANGES
$CHANGES
5 changes: 3 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
categories:
Expand All @@ -13,7 +14,7 @@ categories:
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
Expand All @@ -28,4 +29,4 @@ version-resolver:
template: |
## Changes

$CHANGES
$CHANGES
117 changes: 59 additions & 58 deletions .github/workflows/Prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Prerelease Build

on:
Expand All @@ -20,62 +21,62 @@ jobs:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Display the path
shell: pwsh
run: echo ${env:PATH}
- name: Version Display
shell: pwsh
run: $PSVersionTable
- name: Bootstrap
shell: pwsh
run: ./actions_bootstrap.ps1
- name: Test and Build
shell: pwsh
run: Invoke-Build -File .\src\ALZ.build.ps1
- name: Upload pester results
uses: actions/upload-artifact@v3
with:
name: pester-results
path: .\src\Artifacts\testOutput
if-no-files-found: warn
- name: Upload zip module archive build
uses: actions/upload-artifact@v3
with:
name: zip-archive
path: .\src\Archive
if-no-files-found: warn
- uses: release-drafter/release-drafter@v5
id: create_release
with:
config-name: prerelease-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package ALZ Module
shell: pwsh
run: |
$tag_version = "${{ steps.create_release.outputs.tag_name }}".Replace("-alpha", "")
./package_ALZ.ps1 -version $tag_version -prerelease alpha
- uses: montudor/action-zip@v1
with:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Display the path
shell: pwsh
run: echo ${env:PATH}
- name: Version Display
shell: pwsh
run: $PSVersionTable
- name: Bootstrap
shell: pwsh
run: ./actions_bootstrap.ps1
- name: Test and Build
shell: pwsh
run: Invoke-Build -File .\src\ALZ.build.ps1
- name: Upload pester results
uses: actions/upload-artifact@v3
with:
name: pester-results
path: .\src\Artifacts\testOutput
if-no-files-found: warn
- name: Upload zip module archive build
uses: actions/upload-artifact@v3
with:
name: zip-archive
path: .\src\Archive
if-no-files-found: warn
- uses: release-drafter/release-drafter@v5
id: create_release
with:
config-name: prerelease-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package ALZ Module
shell: pwsh
run: |
$tag_version = "${{ steps.create_release.outputs.tag_name }}".Replace("-alpha", "")
./package_ALZ.ps1 -version $tag_version -prerelease alpha
- uses: montudor/action-zip@v1
with:
args: zip -qq -r ALZ.zip ALZ
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ALZ.zip
asset_name: ALZ.zip
asset_content_type: application/zip
- uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
- name: Publish ALZ Module
shell: pwsh
run: |
Publish-Module -Path "./ALZ" -NuGetApiKey ${{ secrets.POWERSHELL_GALLERY_KEY }} -ReleaseNotes "${{ steps.create_release.outputs.body }}" -Force
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ALZ.zip
asset_name: ALZ.zip
asset_content_type: application/zip
- uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
- name: Publish ALZ Module
shell: pwsh
run: |
Publish-Module -Path "./ALZ" -NuGetApiKey ${{ secrets.POWERSHELL_GALLERY_KEY }} -ReleaseNotes "${{ steps.create_release.outputs.body }}" -Force
47 changes: 24 additions & 23 deletions .github/workflows/PullRequest.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Pull Request Validator
on:
pull_request:
Expand All @@ -12,27 +13,27 @@ jobs:
strategy:
fail-fast: false
matrix:
pwsh: [ '7.1.3' ]
pwsh: ['7.1.3']
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Display the path
shell: pwsh
run: echo ${env:PATH}
- name: Version Display
shell: pwsh
run: $PSVersionTable
- name: Bootstrap
shell: pwsh
run: ./actions_bootstrap.ps1
- name: Test and Build
shell: pwsh
run: Invoke-Build -File .\src\ALZ.build.ps1
- name: Upload pester results
uses: actions/upload-artifact@v3
with:
name: pester-results
path: .\src\Artifacts\testOutput
if-no-files-found: warn
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Display the path
shell: pwsh
run: echo ${env:PATH}
- name: Version Display
shell: pwsh
run: $PSVersionTable
- name: Bootstrap
shell: pwsh
run: ./actions_bootstrap.ps1
- name: Test and Build
shell: pwsh
run: Invoke-Build -File .\src\ALZ.build.ps1
- name: Upload pester results
uses: actions/upload-artifact@v3
with:
name: pester-results
path: .\src\Artifacts\testOutput
if-no-files-found: warn
Loading
Loading