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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1089.tar.gz
Algorithm Hash digest
SHA256 893e9b98cff060fa04cb60d7392a181568bf072e1398f31e6fe141d923b4e935
MD5 fe65a84037d4f0189f4306fdfb4b4757
BLAKE2b-256 f5b564d7ae678cf601f4ee20c36c331952ca2ed443f4efb7c5c7c2d76ace9eb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1089-py3-none-any.whl
Algorithm Hash digest
SHA256 6092217c9a14c84f82d2b0cb00f8763f3a90f01334854a926f322aee3f763aa4
MD5 fd18b459fc6f9ade84e70eb987bfd6c2
BLAKE2b-256 e1cb1f35ec8319659e441984575cf45848e03d53d1ea8e8fb92cd3647565e2ec

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