Skip to content

Commit

Permalink
OneBranch.body.yml: publish the blob-csi-driver chart
Browse files Browse the repository at this point in the history
  • Loading branch information
anlatsko committed Aug 27, 2024
1 parent 8965d75 commit 96b01fa
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions pipelines/OneBranch.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,22 @@
# call of this template.
parameters:
- name: acr
displayName: ACR for container image publish
displayName: ACR for container image and chart publish
type: string
- name: architectures
displayName: Architectures to build
type: object
- name: helmPath
displayName: Path to the Helm chart to package; latest will build version from BLOB_CSI_VERSION
type: string
default: "latest"
- name: buildType
displayName: The type of build.
type: string
values:
- official
- buddy


stages:
- stage: setup
jobs:
Expand Down Expand Up @@ -176,6 +179,7 @@ stages:
variables:
ob_outputDirectory: "$(Build.SourcesDirectory)/out"
steps:
- checkout: self
- checkout: Hydra
- template: pipelines/templates/job_start.yml@Hydra
parameters:
Expand Down Expand Up @@ -227,7 +231,16 @@ stages:
images:
- $(BlobImageRepo)

- template: pipelines/templates/package_and_push_helm_chart.yml@Hydra
parameters:
displayName: "Package and push blob-csi-driver Helm chart"
${{ if eq(parameters.helmPath, 'latest') }}:
chartPath: Hydra-blob-csi-driver/charts/$(blobCsiVersion)/blob-csi-driver
${{ else }}:
chartPath: ${{ parameters.helmPath }}
chartVer: "$(blobCsiVersion)"
acr: ${{ parameters.acr }}

- task: ComponentGovernanceComponentDetection@0
inputs:
ignoreDirectories: s # Hydra is checked out to "s"

0 comments on commit 96b01fa

Please sign in to comment.