Neptunian Parity Mnemonic

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

    0.6.1 • 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

    Install

    npm i pulumi-buddy

    DownloadsWeekly Downloads

    8

    Version

    0.6.1

    License

    MIT

    Unpacked Size

    3.51 MB

    Total Files

    427

    Last publish

    Collaborators

    • draconisnoctis