зеркало из https://github.com/Azure/ARO-RP.git
fluentbit pipeline
This commit is contained in:
Родитель
9dc6d3887c
Коммит
a5e9183ac5
|
@ -0,0 +1,22 @@
|
|||
# Azure DevOps Pipeline building rp images and pushing to int acr
|
||||
trigger: none
|
||||
pr: none
|
||||
|
||||
variables:
|
||||
- template: vars.yml
|
||||
|
||||
jobs:
|
||||
- job: Build_and_push_image_fluentbit
|
||||
pool:
|
||||
name: ARO-CI
|
||||
|
||||
steps:
|
||||
- template: ./templates/template-checkout.yml
|
||||
- template: ./templates/template-az-cli-login.yml
|
||||
parameters:
|
||||
azureDevOpsJSONSPN: $(aro-v4-ci-devops-spn)
|
||||
- template: ./templates/template-push-images-to-acr.yml
|
||||
parameters:
|
||||
rpImageACR: $(RP_IMAGE_ACR)
|
||||
buildCommand: "publish-image-fluentbit"
|
||||
- template: ./templates/template-az-cli-logout.yml
|
|
@ -18,6 +18,7 @@ jobs:
|
|||
- template: ./templates/template-push-images-to-acr.yml
|
||||
parameters:
|
||||
rpImageACR: $(RP_IMAGE_ACR)
|
||||
buildCommand: "publish-image-aro"
|
||||
- template: ./templates/template-az-cli-logout.yml
|
||||
- script: |
|
||||
cp -a --parents aro "$(Build.ArtifactStagingDirectory)"
|
||||
|
|
|
@ -30,6 +30,7 @@ jobs:
|
|||
- template: ./templates/template-push-images-to-acr.yml
|
||||
parameters:
|
||||
rpImageACR: $(RP_IMAGE_ACR)
|
||||
buildCommand: "publish-image-aro"
|
||||
- script: |
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
parameters:
|
||||
rpImageACR: ''
|
||||
buildCommand: ''
|
||||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
|
@ -10,5 +11,5 @@ steps:
|
|||
az acr login --name "$RP_IMAGE_ACR"
|
||||
# azure checkouts commit, so removing master reference when publishing image
|
||||
export BRANCH=$(Build.SourceBranchName)
|
||||
make publish-image-aro
|
||||
make ${{ parameters.buildCommand }}
|
||||
displayName: ⚙️ Build and push images to ACR
|
||||
|
|
Загрузка…
Ссылка в новой задаче