summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/azure/azcollection/release-pipelines.yml
blob: 1232d0a2ca44f3666bbfca7380582e92baecc1b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
 tags:
   include:
     - v*.*.*

pr: none

pool:
  vmImage: 'ubuntu-latest'

steps:
- script: |
    pip install wheel
    pip install ansible==v2.9.0
    ansible --version
  displayName: 'install ansible'

- script: |
    ansible-galaxy collection build .
  displayName: 'build collection'

- script: |
    ansible-galaxy collection publish *.tar.gz --api-key $(GALAXY_KEY)
  displayName: 'publish collection'