Skip to content

Commit

Permalink
Generate SBOM + target 1ES pool (#515)
Browse files Browse the repository at this point in the history
* Add SBOM task + target 1ES hosted MMS image

* Use TLS 1.2 flavor of the vmImage

* Use 1ES hosted pool

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Try building the container with ubuntu-18.04

* Move SBOM task earlier in the flow

* Test 1es image

* Update github service connection

* Skip building the local container for testing

* Test container build

* Restore version retrieval
  • Loading branch information
marianan authored Jan 13, 2022
1 parent dce6dd9 commit 563dd68
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ trigger:
- refs/tags/v*

pool:
vmImage: ubuntu-18.04
name: Azure-IoT-EdgeExperience-1ES-Hosted-Linux
demands:
- ImageOverride -equals MMSUbuntu18.04TLS

steps:
- task: UsePythonVersion@0
Expand Down Expand Up @@ -51,6 +53,12 @@ steps:
KeyVaultName: 'azure-iot-edgetools-kv'
SecretsFilter: '*'
RunAsPreJob: true

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'SBOM Generation Task'
inputs:
BuildDropPath: '$(Build.SourcesDirectory)/dist'

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/dist'
Expand All @@ -68,7 +76,7 @@ steps:
- task: GitHubRelease@0
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
gitHubConnection: 'github.com_marianan-IoTEdgeDev'
gitHubConnection: 'github.com_marianan'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
Expand Down

0 comments on commit 563dd68

Please sign in to comment.