Skip to content

Commit

Permalink
Merge pull request #310 from gusztavvargadr/feature/update-to-hcl2-244
Browse files Browse the repository at this point in the history
Update to HCL2
  • Loading branch information
gusztavvargadr authored Feb 24, 2024
2 parents 060cc18 + 1534edd commit a79fccb
Show file tree
Hide file tree
Showing 562 changed files with 4,540 additions and 8,140 deletions.
14 changes: 14 additions & 0 deletions .azure-pipelines/docker-linux/community-ubuntu-server/hyperv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: ubuntu-server.2204-lts.hyperv

stages:
- template: ../../stages.yml
parameters:
sample: docker-linux
image: community-ubuntu-server
provider: hyperv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: ubuntu-server.2204-lts.virtualbox

stages:
- template: ../../stages.yml
parameters:
sample: docker-linux
image: community-ubuntu-server
provider: virtualbox
14 changes: 14 additions & 0 deletions .azure-pipelines/docker-linux/community-ubuntu-server/vmware.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: ubuntu-server.2204-lts.vmware

stages:
- template: ../../stages.yml
parameters:
sample: docker-linux
image: community-ubuntu-server
provider: vmware
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard-core.hyperv

stages:
- template: ../../stages.yml
parameters:
sample: docker-windows
image: community-windows-server-core
provider: hyperv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard-core.virtualbox

stages:
- template: ../../stages.yml
parameters:
sample: docker-windows
image: community-windows-server-core
provider: virtualbox
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard-core.vmware

stages:
- template: ../../stages.yml
parameters:
sample: docker-windows
image: community-windows-server-core
provider: vmware
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard.hyperv

stages:
- template: ../../stages.yml
parameters:
sample: docker-windows
image: community-windows-server
provider: hyperv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard.virtualbox

stages:
- template: ../../stages.yml
parameters:
sample: docker-windows
image: community-windows-server
provider: virtualbox
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard.vmware

stages:
- template: ../../stages.yml
parameters:
sample: docker-windows
image: community-windows-server
provider: vmware
14 changes: 14 additions & 0 deletions .azure-pipelines/iis/windows-server-core/hyperv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard-core.hyperv

stages:
- template: ../../stages.yml
parameters:
sample: iis
image: windows-server-core
provider: hyperv
14 changes: 14 additions & 0 deletions .azure-pipelines/iis/windows-server-core/virtualbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard-core.virtualbox

stages:
- template: ../../stages.yml
parameters:
sample: iis
image: windows-server-core
provider: virtualbox
14 changes: 14 additions & 0 deletions .azure-pipelines/iis/windows-server-core/vmware.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard-core.vmware

stages:
- template: ../../stages.yml
parameters:
sample: iis
image: windows-server-core
provider: vmware
14 changes: 14 additions & 0 deletions .azure-pipelines/iis/windows-server/hyperv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard.hyperv

stages:
- template: ../../stages.yml
parameters:
sample: iis
image: windows-server
provider: hyperv
14 changes: 14 additions & 0 deletions .azure-pipelines/iis/windows-server/virtualbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard.virtualbox

stages:
- template: ../../stages.yml
parameters:
sample: iis
image: windows-server
provider: virtualbox
14 changes: 14 additions & 0 deletions .azure-pipelines/iis/windows-server/vmware.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: windows-server.2022-standard.vmware

stages:
- template: ../../stages.yml
parameters:
sample: iis
image: windows-server
provider: vmware
146 changes: 146 additions & 0 deletions .azure-pipelines/jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
parameters:
sample: ''
image: ''
provider: ''
build: ''

jobs:
- job: build
displayName: Build ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }}

pool:
name: default
demands:
- VSTS_AGENT_CAP_VIRTUALIZATION_PROVIDER -equals ${{ parameters.provider }}

workspace:
clean: all

timeoutInMinutes: 150

variables:
sourcePipelineArtifactsPath: $[ replace(variables['resources.pipeline.source.pipelineName'], '.', '/') ]

steps:
- checkout: self
submodules: recursive

- script: |
dotnet --info
dotnet tool restore
displayName: Initialize .NET
- script: |
packer --version
displayName: Initialize Packer
- script: |
vagrant --version
vagrant plugin list
vagrant box list
vagrant global-status --prune
displayName: Initialize Vagrant
- script: |
dotnet cake --configuration ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }} --target init
displayName: Init
- script: |
dotnet cake --configuration ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }} --target restore --exclusive
displayName: Restore
- ${{ if eq(parameters.build, 'native') }}:
- task: DownloadPipelineArtifact@2
inputs:
source: specific
artifact: native-build
targetPath: ./artifacts/$(sourcePipelineArtifactsPath)/native
project: $(System.TeamProjectId)
pipeline: $(resources.pipeline.source.pipelineID)
runVersion: latestFromBranch
runBranch: $(Build.SourceBranch)
displayName: Download artifacts
condition: and(succeeded(), ne(variables['resources.pipeline.source.pipelineID'], ''))

- ${{ if eq(parameters.build, 'vagrant') }}:
- task: DownloadPipelineArtifact@2
inputs:
source: current
artifact: native-build
targetPath: ./artifacts/${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/native
displayName: Download artifacts

- script: |
dotnet cake --configuration ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }} --target build --exclusive
displayName: Build
- script: |
dotnet cake --configuration ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }} --target test --exclusive
displayName: Test
- publish: ./artifacts/${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }}
artifact: ${{ parameters.build }}-build
displayName: Publish artifacts

- script: |
dotnet cake --configuration ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }} --target clean
displayName: Clean
condition: always()
- ${{ if eq(parameters.build, 'vagrant') }}:
- job: publish
displayName: Publish ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }}
dependsOn: build
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

pool:
vmImage: ubuntu-22.04

variables:
- group: environment-vagrantcloud

steps:
- checkout: self
submodules: recursive

- script: |
df -h
sudo rm -Rf /usr/local/lib/android
sudo rm -Rf /usr/local/lib/node_modules
df -h
displayName: Initialize agent
- script: |
dotnet --info
dotnet tool restore
displayName: Initialize .NET
- script: |
packer --version
displayName: Initialize Packer
- script: |
dotnet cake --configuration ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }} --target init
displayName: Init
- task: DownloadPipelineArtifact@2
inputs:
source: current
artifact: vagrant-build
targetPath: ./artifacts/${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/vagrant
displayName: Download artifacts

- script: |
dotnet cake --configuration ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }} --target publish --exclusive
displayName: Publish
env:
VAGRANT_CLOUD_TOKEN: $(environment-vagrant-cloud-token)
- script: |
dotnet cake --configuration ${{ parameters.sample }}/${{ parameters.image }}/${{ parameters.provider }}/${{ parameters.build }} --target clean
displayName: Clean
condition: always()
14 changes: 14 additions & 0 deletions .azure-pipelines/kitchen-ubuntu/2204/hyperv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: source
source: ubuntu-server.2204-lts.hyperv

stages:
- template: ../../stages.yml
parameters:
sample: kitchen-ubuntu
image: "2204"
provider: hyperv
Loading

0 comments on commit a79fccb

Please sign in to comment.