Skip to main content

The CDK for Terraform Construct for Gitlab Runner on GCP

Project description

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();

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdktf_gitlab_runner-0.0.1081.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

cdktf_gitlab_runner-0.0.1081-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file cdktf_gitlab_runner-0.0.1081.tar.gz.

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1081.tar.gz
Algorithm Hash digest
SHA256 d7d108bfc1e1f36b4d3e1c6630d779570d98828717d527ef562d1cccef726d9f
MD5 cbd86dfde0a78d95c864e763daebd520
BLAKE2b-256 2677421c8881b29f749f035d23368042ee424b743697399f168366563b09f3d7

See more details on using hashes here.

File details

Details for the file cdktf_gitlab_runner-0.0.1081-py3-none-any.whl.

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1081-py3-none-any.whl
Algorithm Hash digest
SHA256 41680ea2df41be9facc6e4a2d421aa322db32e3b91bacfc653d757167fb0ceea
MD5 76119bac3d3a0de43db5e7e152a7b255
BLAKE2b-256 22cbcb967733398cc5e5302a62de5402234fe5dc1178f4b7b512c3026ce941b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page