samples icon indicating copy to clipboard operation
samples copied to clipboard

Azure Devops pipeline updates for ieftool

Open judedaryl opened this issue 2 years ago • 0 comments

An example for building a CI/CD pipeline in AzureDevOps for TrustFramework policies as an alternative to the powershell example in msft docs

Uses https://github.com/judedaryl/go-ieftool

The original project was written in typescript https://github.com/judedaryl/ieftool and heavily depended on the nodeJS runtime, this meant your pipelines required node just for this tool.

The project has been ported to use golang, keeping core functionality and revising the way you provide credentials. Binary size for the golang package is 9mb and is by all definitions truly standalone.

Before

ieftool deploy -c client_Id -s client_secret -t tenant_id -p ./policy

After

export B2C_TENANT_ID=__TENANT_ID__
export B2C_CLIENT_ID=__CLIENT_ID__
export B2C_CLIENT_SECRET=__CLIENT_SECRET__

ieftool deploy ./policy

Installation

Installation has been made simpler by requiring the user to simply download the binary from the release page in github https://github.com/judedaryl/go-ieftool/releases/latest.

A wrapper shell script is provided at https://raw.githubusercontent.com/judedaryl/go-ieftool/main/install.sh which simply detects your Operating System and Architecture then downloads the correct binary for you and installs it to your bin folder usr/local/bin.

judedaryl avatar Jul 19 '22 17:07 judedaryl