Skip to content

Commit

Permalink
Merge pull request #179 from BusinessCentralApps/update-al-go-system-…
Browse files Browse the repository at this point in the history
…files/main/240819051332

[main] Update AL-Go System Files from freddydk/AL-Go@customize -  362ec0f0ac7d8883f8a1701b9226a4aae8b6445b
  • Loading branch information
freddydk authored Aug 19, 2024
2 parents 8451f06 + 7462cf9 commit ace9b39
Show file tree
Hide file tree
Showing 13 changed files with 132 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"DeliverToStorage": {
"CreateContainerIfNotExist": true
},
"templateSha": "01b6d49b904f0b54eacbfd5d0d9759398bcdb17d",
"templateSha": "362ec0f0ac7d8883f8a1701b9226a4aae8b6445b",
"RepoVersion": "1.0",
"artifact": "//24.0//first",
"vsixFile": "latest",
Expand Down
1 change: 1 addition & 0 deletions .github/DeployToCustom.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Write-Host "Deploy To Custom!"
20 changes: 20 additions & 0 deletions .github/workflows/myCreateBuildTag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Create Build Tag'

on:
workflow_run:
workflows: [' CI/CD','CI/CD']
types: [completed]
branches: [ 'main' ]

run-name: "[${{ github.ref_name }}] Create build tag"

permissions: read-all

jobs:
CreateTag:
if: github.event.workflow_run.conclusion == 'success'
runs-on: windows-latest
steps:
- name: mystep
run: |
Write-Host "Create tag"
21 changes: 21 additions & 0 deletions BO-DK/.AL-Go/FakeNewBcContainer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Param(
[Hashtable]$parameters
)

$parameters.multitenant = $false
$parameters.RunSandboxAsOnPrem = $true
if ("$env:GITHUB_RUN_ID" -eq "") {
$parameters.includeAL = $true
$parameters.doNotExportObjectsToText = $true
$parameters.shortcuts = "none"
}

New-BcContainer @parameters

$installedApps = Get-BcContainerAppInfo -containerName $containerName -tenantSpecificProperties -sort DependenciesLast
$installedApps | ForEach-Object {
Write-Host "Removing $($_.Name)"
Unpublish-BcContainerApp -containerName $parameters.ContainerName -name $_.Name -unInstall -doNotSaveData -doNotSaveSchema -force
}

Invoke-ScriptInBcContainer -containerName $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' }
1 change: 1 addition & 0 deletions BO-DK/.AL-Go/myDevEnv.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Write-Host "Create DevEnv My Way!"
21 changes: 21 additions & 0 deletions BO-IT/.AL-Go/FakeNewBcContainer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Param(
[Hashtable]$parameters
)

$parameters.multitenant = $false
$parameters.RunSandboxAsOnPrem = $true
if ("$env:GITHUB_RUN_ID" -eq "") {
$parameters.includeAL = $true
$parameters.doNotExportObjectsToText = $true
$parameters.shortcuts = "none"
}

New-BcContainer @parameters

$installedApps = Get-BcContainerAppInfo -containerName $containerName -tenantSpecificProperties -sort DependenciesLast
$installedApps | ForEach-Object {
Write-Host "Removing $($_.Name)"
Unpublish-BcContainerApp -containerName $parameters.ContainerName -name $_.Name -unInstall -doNotSaveData -doNotSaveSchema -force
}

Invoke-ScriptInBcContainer -containerName $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' }
1 change: 1 addition & 0 deletions BO-IT/.AL-Go/myDevEnv.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Write-Host "Create DevEnv My Way!"
21 changes: 21 additions & 0 deletions BO-W1/.AL-Go/FakeNewBcContainer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Param(
[Hashtable]$parameters
)

$parameters.multitenant = $false
$parameters.RunSandboxAsOnPrem = $true
if ("$env:GITHUB_RUN_ID" -eq "") {
$parameters.includeAL = $true
$parameters.doNotExportObjectsToText = $true
$parameters.shortcuts = "none"
}

New-BcContainer @parameters

$installedApps = Get-BcContainerAppInfo -containerName $containerName -tenantSpecificProperties -sort DependenciesLast
$installedApps | ForEach-Object {
Write-Host "Removing $($_.Name)"
Unpublish-BcContainerApp -containerName $parameters.ContainerName -name $_.Name -unInstall -doNotSaveData -doNotSaveSchema -force
}

Invoke-ScriptInBcContainer -containerName $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' }
1 change: 1 addition & 0 deletions BO-W1/.AL-Go/myDevEnv.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Write-Host "Create DevEnv My Way!"
21 changes: 21 additions & 0 deletions Common/.AL-Go/FakeNewBcContainer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Param(
[Hashtable]$parameters
)

$parameters.multitenant = $false
$parameters.RunSandboxAsOnPrem = $true
if ("$env:GITHUB_RUN_ID" -eq "") {
$parameters.includeAL = $true
$parameters.doNotExportObjectsToText = $true
$parameters.shortcuts = "none"
}

New-BcContainer @parameters

$installedApps = Get-BcContainerAppInfo -containerName $containerName -tenantSpecificProperties -sort DependenciesLast
$installedApps | ForEach-Object {
Write-Host "Removing $($_.Name)"
Unpublish-BcContainerApp -containerName $parameters.ContainerName -name $_.Name -unInstall -doNotSaveData -doNotSaveSchema -force
}

Invoke-ScriptInBcContainer -containerName $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' }
1 change: 1 addition & 0 deletions Common/.AL-Go/myDevEnv.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Write-Host "Create DevEnv My Way!"
21 changes: 21 additions & 0 deletions Misc/.AL-Go/FakeNewBcContainer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Param(
[Hashtable]$parameters
)

$parameters.multitenant = $false
$parameters.RunSandboxAsOnPrem = $true
if ("$env:GITHUB_RUN_ID" -eq "") {
$parameters.includeAL = $true
$parameters.doNotExportObjectsToText = $true
$parameters.shortcuts = "none"
}

New-BcContainer @parameters

$installedApps = Get-BcContainerAppInfo -containerName $containerName -tenantSpecificProperties -sort DependenciesLast
$installedApps | ForEach-Object {
Write-Host "Removing $($_.Name)"
Unpublish-BcContainerApp -containerName $parameters.ContainerName -name $_.Name -unInstall -doNotSaveData -doNotSaveSchema -force
}

Invoke-ScriptInBcContainer -containerName $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' }
1 change: 1 addition & 0 deletions Misc/.AL-Go/myDevEnv.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Write-Host "Create DevEnv My Way!"

0 comments on commit ace9b39

Please sign in to comment.