msquic/.azure/OneBranch.Publish.yml

36 строки
1.1 KiB
YAML

#
# Uploads a SIGNED package from a given URL to packages.microsoft.com.
#
trigger: none
parameters:
- name: PackageUrl
displayName: Package URL
type: string
default: "https://github.com/microsoft/msquic/releases/download/v2.1.0/libmsquic-2.1.0-1.x86_64.rpm"
- name: PackageName
displayName: Package Name (e.g. libmsquic-2.1.0-1.x86_64.rpm)
type: string
default: "libmsquic-2.1.0-1.x86_64.rpm"
jobs:
- job: UploadPackage
workspace:
clean: all
pool:
vmImage: 'ubuntu-latest'
variables:
- group: MsQuicAADApp
steps:
- task: Docker@2
displayName: Login to ACR
inputs:
command: login
containerRegistry: msquicdockerregistry
- script: |
echo "URL = ${{ parameters.PackageUrl }}"
mkdir output
wget -O output/${{ parameters.PackageName }} ${{ parameters.PackageUrl }}
OUTPUT=`realpath output`
ls $OUTPUT
docker run -v $OUTPUT:/usr/src/hostpwd msquicdockerregistry.azurecr.io/private/msquic/publish-linux-packages:latest -i $(ClientId) -s $(Secret) -f /usr/src/hostpwd/${{ parameters.PackageName }}