Skip to content

Use this plugin when you want to populate a yaml file

Notifications You must be signed in to change notification settings

phpdrone/to-yaml-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToYaml Drone plugin

Introduction

Use this plugin when you want to populate a yaml file from a Drone step

Usage

pipeline:
  prepare-config:
    image: phpdrone/to-yaml-file
    file: build.yaml
    yaml:
      mysql:
        host: mysql
        user: my_user
        password: password
      site:
        base_url: http://web:8080
      features:
        - feature1
        - feature2

Output

[prepare-config:L0:0s] 142 bytes written to build.yaml

Limitation

Due to the way settings are passed to plugins, the order is not guaranteed.

Eg: in the example provided, feature will be first in the file :

features:
    - feature1
    - feature2
mysql:
    host: mysql
    password: password
    user: my_user
site:
    base_url: 'http://web:8080'

About

Use this plugin when you want to populate a yaml file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages