drone-var-replacer

command module
v0.0.0-...-0d7a79d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

A plugin to replace and override variables with values in a template file.

Usage

The plugin looks for the template file where the variable is defined.

  • PLUGIN_TEMPLATE_FILE_PATH

Below is an example that uses this plugin.

- step:
    type: Plugin
    name: var-replacer
    identifier: var-replacer
    spec:
      connectorRef: harnessdocker
      image: plugins/var-replacer:latest
      settings:
        template_file_path: template.yaml
        pythonversion: python3.9
        httpmethod: get

Here, pythonversion and httpmethod are the variables defined in the template.yaml file.

Building

Build the plugin binary:

scripts/build.sh

Build the plugin image:

docker build -t {{DockerRepository}} -f docker/Dockerfile .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL