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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1090.tar.gz
Algorithm Hash digest
SHA256 669f4f5fc46c16bd2485b1f9b972a098c4961fe8b04c136a5b0cf4702be38edd
MD5 e49b022fdc5be29d8e8fe2f8dd784cb3
BLAKE2b-256 bbb085948e9f23f05fba93088b2478dc859fc8b0f2add4056142e61d6f73e8f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdktf_gitlab_runner-0.0.1090-py3-none-any.whl
Algorithm Hash digest
SHA256 e31fed5fef2e468beddfcae338daba25f1f3b7994821425b8cdb5a826874b912
MD5 aace6ed5f425542862f0508b75b04076
BLAKE2b-256 6a9c4e82c1dd0a82ef4497bbe3fac9b52abebf1ece65ea5c3a830c1db189275c

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