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

Update/december23 #8

Merged
merged 9 commits into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu-win-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ jobs:
run: |
$ImageType = "${{ inputs.image_name }}"

if ($ImageType.StartsWith("ubuntu")) { $TemplateDirectoryName = "linux" } else { $TemplateDirectoryName = "win" }
if ($ImageType.StartsWith("ubuntu")) { $TemplateDirectoryName = "ubuntu" } else { $TemplateDirectoryName = "win" }

$TemplateDirectoryPath = Join-Path "images" $TemplateDirectoryName | Resolve-Path
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.pkr.hcl"
$TemplatePath = Join-Path $TemplateDirectoryPath "templates/$ImageType.pkr.hcl"

if ( -not (Test-Path $TemplatePath) ) {
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.json"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ubuntu2204.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
types: labeled
paths:
- 'images/linux/**'
- 'images/ubuntu/**'
# schedule:
# - cron: '0 0 * * *'

Expand All @@ -22,7 +23,7 @@ jobs:
if: ${{ (github.event.label.name == 'CI:\ ubuntu-all') || (github.event.label.name == 'CI:\ ubuntu-2204') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }}
uses: ./.github/workflows/ubuntu-win-generation.yml
with:
image_name: 'ubuntu2204'
image_name: 'ubuntu-22.04'
image_readme_name: 'Ubuntu2204-Readme.md'
custom_repo: ${{ github.event.inputs.CUSTOM_REPOSITORY }}
custom_repo_commit_hash: ${{ github.event.inputs.CUSTOM_REPOSITORY_COMMIT_HASH }}
Expand Down
5 changes: 3 additions & 2 deletions images.CI/linux-and-win/build-image.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,22 @@ $SensitiveData = @(
Write-Host "Show Packer Version"
packer --version

packer init $TemplatePath

Write-Host "Build $Image VM"
packer build -var "capture_name_prefix=$ResourcesNamePrefix" `
-var "client_id=$ClientId" `
-var "client_secret=$ClientSecret" `
-var "install_password=$InstallPassword" `
-var "location=$Location" `
-var "resource_group=$ResourceGroup" `
-var "resource_group_name=$ResourceGroup" `
-var "storage_account=$StorageAccount" `
-var "subscription_id=$SubscriptionId" `
-var "temp_resource_group_name=$TempResourceGroupName" `
-var "tenant_id=$TenantId" `
-var "virtual_network_name=$VirtualNetworkName" `
-var "virtual_network_resource_group_name=$VirtualNetworkRG" `
-var "virtual_network_subnet_name=$VirtualNetworkSubnet" `
-var "run_validation_diskspace=$env:RUN_VALIDATION_FLAG" `
-var "private_virtual_network_with_public_ip=true" `
-color=false `
$TemplatePath `
Expand Down
22 changes: 0 additions & 22 deletions images/linux/scripts/SoftwareReport/SoftwareReport.Java.psm1

This file was deleted.

7 changes: 0 additions & 7 deletions images/linux/scripts/base/apt-mock-remove.sh

This file was deleted.

8 changes: 0 additions & 8 deletions images/linux/scripts/base/reboot.sh

This file was deleted.

93 changes: 0 additions & 93 deletions images/linux/scripts/helpers/Common.Helpers.psm1

This file was deleted.

41 changes: 0 additions & 41 deletions images/linux/scripts/helpers/SoftwareReport.Helpers.psm1

This file was deleted.

126 changes: 0 additions & 126 deletions images/linux/scripts/installers/android.sh

This file was deleted.

31 changes: 0 additions & 31 deletions images/linux/scripts/installers/aws.sh

This file was deleted.

Loading
Loading