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.1074.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1074.tar.gz
Algorithm Hash digest
SHA256 6490614da7211e0021c68b85d0407fa7b57849085a157305f83b4fa5000b10c6
MD5 9de3e3695616bc21961567b46915df23
BLAKE2b-256 61b82c91c55da7b52f8308f01218dd529bd9b8787dae437ee3a46fefc3d2d677

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1074-py3-none-any.whl
Algorithm Hash digest
SHA256 e8718380ee3b08a4ab15e0418d653573dc06012c0e29397d0f568420e561a26e
MD5 da3fb54acfbcf760682d74b7174d3106
BLAKE2b-256 6628b743d257736524598928624886fdb0d5a5fcc35e40b3598f3284ce9ab293

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