Coder Social home page Coder Social logo

azure-pipelines-templates's Introduction

azure-pipelines-templates

Hi, ๐Ÿ‘‹. This repository holds azure pipeline templates that can be reused in your projects.

How to use the templates ?

Documentation can be found in Microsoft pages: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#passing-parameters.

Nordcloud's recommendations:

  • keep the main pipeline file in azure-pipelines.yml in the root of the repository if you have one pipeline only
  • if you go multi pipeline, keep your pipeline ymls in .azure-pipelines
  • for templates create: .azure-pipelines/templates directory and keep the templates there

Templates

  • step-assume-role-arn.yml - sets credentials of the assumed role
  • step-setup-go-cache.yml - sets golang and go mod caching of the $GOPATH/mod/pkg directory
  • step-install-ssh-key - installs SSH key and adds github and bithucket to known hosts. PUBLIC_KEY and secure file with PRIVATE key is required.
  • step-backup-dynamodb - backups dynamoDB tables with the given prefix.
  • step-set-tag-output - git tag helper validation.
  • step-trigger-amplify-console-build - triggers Amplify pipeline build so that you have visbility in your Azure pipelines
  • job-trigger-pipeline-multiple-times - A pipeline that triggers a secondary pipeline an x amount of times. Used in a project previously to trigger a Virtual Machine creation pipeline with identical parameters.

Usage example

If you copy a template to your repo:

      - template: templates/step-cache-go-mod.yml
        parameters:
          path:  $(GOPATH)/pkg/mod

Or if you want to reference it direcly from this repository, first define it in the resources section.

resources:
  repositories:
    - repository: 'nordcloud-templates'
      type: 'github'
      name: 'nordcloud/azure-pipelines-templates'
      endpoint: 'nordcloud'

and then you can refer it with a repository name:

      - template: 'step-set-tag-output.yml@nordcloud-templates'

Check the docs for more.

Contributing

Adding new template should be done by a PR to this repository. File naming convention is {type}-yourname.yml, where {type} should be either: step, job or stage depending on the type of template.

Inside the template file add a comment manifest, example:

# Version: 0.1
# Maintainer: Dariusz Dwornikowski
# Parameters:
# version: version of the tool (string)

You can also add any comment that explains how template parameters are to used.

License

MIT

Authors

Nordcloud, and IBM company

azure-pipelines-templates's People

Contributors

adam-debkowski avatar ald4ri avatar kevwargo avatar mescam avatar sternik avatar tdi avatar vbortkevic 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

azure-pipelines-templates's Issues

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.