Construct a CDK tf
Project description
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
- Instance Manager Group
- Auto Register Gitlab Runner
- Auto Unregister Gitlab Runner (when destroy and shutdown)
- Support preemptible
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
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import cdktf_cdktf_provider_google as gcp
import cdktf as cdktf
from constructs import Construct
from ..index import GitlabRunnerAutoscaling
class IntegDefaultStack(cdktf.TerraformStack):
def __init__(self, scope, id):
super().__init__(scope, id)
local = "asia-east1"
project_id = f"{process.env.PROJECT_ID}"
provider = gcp.GoogleProvider(self, "GoogleAuth",
region=local,
zone=local + "-c",
project=project_id
)
GitlabRunnerAutoscaling(self, "GitlabRunnerAutoscaling",
gitlab_token=f"{process.env.GITLAB_TOKEN}",
provider=provider
)
app = cdktf.App()
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.15.tar.gz
(35.2 kB
view hashes)
Built Distribution
Close
Hashes for cdktf-gitlab-runner-0.0.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d08f0255336e26ee54d0f3d682096713810aeaa17199cced162afa8858106e63 |
|
MD5 | 04e873fc7c2865d8df8f2fa668c33a6c |
|
BLAKE2b-256 | b608b77c2d8009afb4044849b5321dbecd3426d4e2db03a5d9fa18bffc7c9836 |
Close
Hashes for cdktf_gitlab_runner-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f68dcb76b8f365beb6d1d213136a373f7e0c1a4057c5b9e61478bd71763195f |
|
MD5 | 59da8262af4c36c7489cd6b49389286d |
|
BLAKE2b-256 | ae4cd8e650ba301b60b7e50c7869add2a318c7f1e4c0bbf4d590d9f4a1e4a687 |