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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1093.tar.gz
Algorithm Hash digest
SHA256 0bf9c2fdaf5a67b8502bbbf15702240996592ff892a81dc136b28df85b3d2f77
MD5 707e40fbb64b34cc49a1f5c7cc914d04
BLAKE2b-256 ded2e113b9b930b13f7e39dc5071b0bb5858635a042f9a21449d17e0819cc14f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1093-py3-none-any.whl
Algorithm Hash digest
SHA256 a44087d2867ea84ead7743a216cbf9ce5909e0753da93595795dbcf076dc013f
MD5 6a3b2458daac22565c69b066d8f5b87b
BLAKE2b-256 10b2050eeff7a5176ab791faa7665108d4ff55cb7ca31a5f40444e8fbf5d0303

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