cdktf-gitlab-runner
TypeScript icon, indicating that this package has built-in type declarations

0.0.908 • Public • Published

NPM version PyPI version Release

Downloads npm PyPI

Welcome to cdktf-gitlab-runner

Use CDK fo Terraform to create gitlab runner, and use gitlab runner to help you execute your Gitlab Pipeline Job.

GitLab Runner is the open source project that is used to run your CI/CD jobs and send the results back to GitLab. (source repo)

Feature

Init CDKTF Project

mkdir demo
cd demo
cdktf init --template typescript --local

Install cdktf-gitlab-runner

yarn add cdktf-gitlab-runner
or
npm i cdktf-gitlab-runner

Example

import * as gcp from '@cdktf/provider-google';
import * as cdktf from 'cdktf';
import { Construct } from 'constructs';
import { GitlabRunnerAutoscaling } from './index';


export class IntegDefaultStack extends cdktf.TerraformStack {
  constructor(scope: Construct, id: string) {
    super(scope, id);
    const local = 'asia-east1';
    const projectId = `${process.env.PROJECT_ID}`;
    const provider = new gcp.GoogleProvider(this, 'GoogleAuth', {
      region: local,
      zone: local+'-c',
      project: projectId,
    });
    new GitlabRunnerAutoscaling(this, 'GitlabRunnerAutoscaling', {
      gitlabToken: `${process.env.GITLAB_TOKEN}`,
      provider,
    });
  }
}


const app = new cdktf.App();
new IntegDefaultStack(app, 'gitlab-runner');
app.synth();

Readme

Keywords

Package Sidebar

Install

npm i cdktf-gitlab-runner

Weekly Downloads

755

Version

0.0.908

License

Apache-2.0

Unpacked Size

159 kB

Total Files

14

Last publish

Collaborators

  • neilguan