Coder Social home page Coder Social logo

houssemdellai / azuredevopspipelines-templates Goto Github PK

View Code? Open in Web Editor NEW
66.0 3.0 209.0 56 KB

This project shows how to use YAML templates in Azure DevOps Pipelines.

Home Page: https://www.youtube.com/houssemdellai/

HCL 100.00%
devops ci-cd templates azure-devops azure terraform

azuredevopspipelines-templates's Introduction

AzureDevOpsPipelines-Templates

# sample-azure-pipelines.yml
trigger:
- master

steps:
- template: sample-template-step.yml
- template: sample-template-step.yml
- template: sample-template-step.yml

Video with explanantion on youtube is available here: https://youtu.be/US_e31hZiWk

azuredevopspipelines-templates's People

Contributors

houssemdellai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

azuredevopspipelines-templates's Issues

passing variables inside templates

@HoussemDellai

Hi, I want to pass o/p one step to another step.for example,i need to call small first and output of small should be captured and passed as input variable to medium.check_status is runtime variable and it will set based on the exit code of each task or step.Could you please let me know the possible solution to use output of small as input to Medium?

below is the snippet of template

template: windows-tests.yml
parameters: integration_tests: [“Small”, “Medium”]
check_status: “$(Powershell1.var)”

code inside small test
$error_Code=$?
if (“$error_Code” -eq “True” -and “$(Powershell2.check_status)” -eq “true”)
{
Write-Host “##vso[task.setvariable variable=check_status;isOutput=true]true”
}
else { Write-Host “##vso[task.setvariable variable=check_status;isOutput=true]false”
}

Feature: Template for Dedicated Service Principal Generation?

Would you be able to make a template (similar to the remote storage backend template) but for setting up a dedicated Terraform Service Principal, or AD Application, to authenticate to Terraform before attempting to run Terraform.

For example, to run terraform in CI/CD you need to have a way to authenticate without user credentials on from your local azure-cli configuration. Therefore, as a pre-requisite to these templates, you could have a separate pipeline that uses azure-cli or resource manager service connection to create that RBSP and retrieve the credentials, stash then (keyvaul / devops variable group) and then proceed to the terraform IaC pipelines.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.