ARO-RP/.pipelines/build.yml

41 строка
1.4 KiB
YAML

# Azure DevOps Pipeline running build
variables:
- template: vars.yml
jobs:
- job: Build_Push_Images
pool:
vmImage: "ubuntu-latest"
strategy:
matrix:
RP:
makefile.target: "image-aro"
Proxy:
makefile.target: "image-proxy"
FluentBit:
makefile.target: "image-fluentbit"
steps:
- template: ./templates/template-setup-golang-env.yml
parameters:
gobin: ${{ variables.GOBIN }}
gopath: ${{ variables.GOPATH }}
goroot: ${{ variables.GOROOT }}
modulePath: ${{ variables.modulePath }}
- script: |
# az login -u $(ARO_CI_SPN_ID) -p $(ARO_CI_SPN_PASSWORD) --tenant $(ARO_CI_SPN_TENANT) --service-principal
# az account set -s $(ARO_ACR_SUB_ID)
# --> registry.access.redhat.com and arosvc.azurecr.io <--
# az keyvault secret show --id $(ARO_ACR_CI_SECRET) | jq -r .value > ~/.docker/config.json
echo az login + acr pull secret from KV
displayName: 🔑 Authenticate and pull secrets
- script: |
echo build images $(makefile.target)
# make $(makefile.target)
workingDirectory: "${{ variables.modulePath }}"
displayName: "🚀 Build : $(makefile.target)"
- script: |
echo push images $(makefile.target)
workingDirectory: "${{ variables.modulePath }}"
displayName: "🚀 Push : $(makefile.target)"