pulumi-buddy
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

Logo

Travis master Snyk master NPM version License

A Pulumi integration for Buddy

Requirements

Quickstart

$ mkdir myproject && cd myproject
$ pulumi new typescript
#            "javascript" works as well
$ npm install
$ npm install pulumi-buddy
#             or pulumi-buddy@next for latest preview version
$ pulumi config set buddy:workspace myworkspace-name
$ pulumi config set buddy:token myaccesstoken --secret
# for Buddy On-Premise
$ pulumi config set buddy:apiUrl https://my-buddy-server.com/api

See here, how to create an access token.

import * as buddy from 'pulumi-buddy';

const project1 = new buddy.Project('project1', {
    display_name: 'Project #1',
    external_project_id: 'domain/repo',
    integration: {
        hash_id: 'integration_hash'
    }
});

export const project_name = project1.name;

const pipeline = new buddy.Pipeline('pipeline1', {
    project_name: project1.name,
    name: 'Pipeline #1',
    ref_name: 'master',
    trigger_mode: 'MANUAL'
});

const action = new buddy.actions.RunDockerContainer('action1', {
    project_name: project1.name,
    pipeline_id: pipeline.pipeline_id,
    docker_image_name: 'ubuntu',
    docker_image_tag: '19.10',
    name: 'Action #1',
    inline_commands: 'echo "Hello from pulumi-buddy"',
    trigger_time: 'ON_EVERY_EXECUTION'
});

More examples

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i pulumi-buddy

Weekly Downloads

2

Version

0.7.0

License

MIT

Unpacked Size

4.08 MB

Total Files

484

Last publish

Collaborators

  • draconisnoctis