The CDK for Terraform Construct for Gitlab Runner on GCP
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.35.tar.gz
(34.9 kB
view hashes)
Built Distribution
Close
Hashes for cdktf-gitlab-runner-0.0.35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 649810de81a9a568a42a60f4382a9419782906d6c412ed0aebef4026b5ec7467 |
|
MD5 | dee8a1d8aa60608c154696fccdedfaa9 |
|
BLAKE2b-256 | 9077e046ffd8dc3e9d094b139579933597a6689df7f785a980ef6836a9df3c16 |
Close
Hashes for cdktf_gitlab_runner-0.0.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b442704d2cc46f90b3bda697066e35d37c0cfc5a2a9f0ededc75e33a5b1f5fee |
|
MD5 | 0acdc6beb6f25b51e4d7057f9775745f |
|
BLAKE2b-256 | c7b20c76afa25c4c6de4932ab73c0b294b036f2dfd35689ea959a578c5d124cf |