Skip to content

Commit

Permalink
pubs
Browse files Browse the repository at this point in the history
  • Loading branch information
eriqua committed Sep 21, 2023
1 parent 5c99f6c commit baee7ef
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/avm.template.module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ jobs:
#########################
# PSRule validation #
#########################
job_psrule_test: # Note: Please don't change this job name. It is used by the setEnvironment action to define which PS modules to install on runners.
name: 'PSRule validation'
runs-on: ubuntu-20.04
if: (fromJson(inputs.workflowInput)).staticValidation == 'true'
strategy:
fail-fast: false
matrix:
moduleTestFilePaths: ${{ fromJson(inputs.moduleTestFilePaths) }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set environment
uses: ./.github/actions/templates/avm-setEnvironment
- name: Set PSRule validation
uses: ./.github/actions/templates/avm-validateModulePSRule
with:
templateFilePath: '${{ inputs.modulePath }}/${{ matrix.moduleTestFilePaths }}'
subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}'
managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}'
# job_psrule_test: # Note: Please don't change this job name. It is used by the setEnvironment action to define which PS modules to install on runners.
# name: 'PSRule validation'
# runs-on: ubuntu-20.04
# if: (fromJson(inputs.workflowInput)).staticValidation == 'true'
# strategy:
# fail-fast: false
# matrix:
# moduleTestFilePaths: ${{ fromJson(inputs.moduleTestFilePaths) }}
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Set environment
# uses: ./.github/actions/templates/avm-setEnvironment
# - name: Set PSRule validation
# uses: ./.github/actions/templates/avm-validateModulePSRule
# with:
# templateFilePath: '${{ inputs.modulePath }}/${{ matrix.moduleTestFilePaths }}'
# subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}'
# managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}'

#############################
# Deployment validation #
Expand All @@ -76,10 +76,10 @@ jobs:
# if: |
# !cancelled() &&
# (fromJson(inputs.workflowInput)).deploymentValidation == 'true'
# # && needs.job_module_static_validation.result != 'failure'
# # needs:
# # - job_module_static_validation
# # - job_psrule_test # Ignoring dependency whilst PSRule gets bedded in, in this project
# && needs.job_module_static_validation.result != 'failure'
# needs:
# - job_module_static_validation
# - job_psrule_test # Ignoring dependency whilst PSRule gets bedded in, in this project
# strategy:
# fail-fast: false
# matrix:
Expand All @@ -102,24 +102,24 @@ jobs:
# managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}'
# removeDeployment: '${{ fromJson(inputs.workflowInput).removeDeployment }}'

# ##################
# # Publishing #
# ##################
# job_publish_module: # Note: Please don't change this job name. It is used by the setEnvironment action to define which PS modules to install on runners.
# name: 'Publishing'
# runs-on: ubuntu-20.04
# if: github.ref == 'refs/heads/main' && !cancelled()
# # needs:
# # - job_module_deploy_validation
# steps:
# - name: 'Checkout'
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Set environment
# uses: ./.github/actions/templates/avm-setEnvironment
# - name: 'Publishing'
# uses: ./.github/actions/templates/avm-publishModule
# with:
# templateFilePath: '${{ inputs.modulePath }}/main.bicep'
# subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}'
##################
# Publishing #
##################
job_publish_module: # Note: Please don't change this job name. It is used by the setEnvironment action to define which PS modules to install on runners.
name: 'Publishing'
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/main' && !cancelled()
# needs:
# - job_module_deploy_validation
steps:
- name: 'Checkout'
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set environment
uses: ./.github/actions/templates/avm-setEnvironment
- name: 'Publishing'
uses: ./.github/actions/templates/avm-publishModule
with:
templateFilePath: '${{ inputs.modulePath }}/main.bicep'
subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}'

0 comments on commit baee7ef

Please sign in to comment.