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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1082.tar.gz
Algorithm Hash digest
SHA256 0da5e6ef49486ab12298054e58240ad044d04d02897aa2fd3100c298ed19ede6
MD5 7beb1e958ba07ef80bceba91c2a048cc
BLAKE2b-256 048b3d51ccce7ace1d74139be721cfe2a14cfce5a76707acbdca12a2ebd79e54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1082-py3-none-any.whl
Algorithm Hash digest
SHA256 d86066d6e41727b7832323620bbac220a0a00d6d153b0268a9a7758a1704bd58
MD5 255def52ac90869389685f2ee75edcf0
BLAKE2b-256 b2558ea57bb245b045f47b04d44333e9f52c159cee9f68f2e88619d77d04e18d

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