A Gitlab Runner JSII construct lib for AWS CDK
Project description
Welcome to cdk-gitlab-runner
This repository template helps you create gitlab runner on your aws account via AWS CDK one line.
Before start your need gitlab runner token in your gitlab project
or gitlab group
In Group
Group > Settings > CI/CD
In Group
Project > Settings > CI/CD > Runners
Usage Replace your gitlab runner roken in $GITLABTOKEN
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from cdk_gitlab_runner import GitlabContainerRunner
# create a new github repository pahud/new-repo and import all files from ./lib to it
GitlabContainerRunner(stack, "testing", gitlabtoken="$GITLABTOKEN")
Wait about 6 mins , If success you will see your runner in that page .
you can use tag gitlab
, runner
, awscdk
,
Example gitlab-ci.yaml
dockerjob:
image: docker:18.09-dind
variables:
tags:
- runner
- awscdk
- gitlab
variables:
DOCKER_TLS_CERTDIR: ""
before_script:
- docker info
script:
- docker info;
- echo 'test 123';
- echo 'hello world 1228'
If your want to debug your can go to aws console
In your runner region !!!
AWS Systems Manager > Session Manager > Start a session
click your runner
and click start session
in the brower console in put bash
# become to root
sudo -i
# list runner container .
root# docker ps -a
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
cdk-gitlab-runner-0.0.7.tar.gz
(593.6 kB
view hashes)
Built Distribution
Close
Hashes for cdk_gitlab_runner-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b719232cc98143a69a93438cb7e1bf54b7824727b58151491d0f7de2b71f4e2 |
|
MD5 | 664adcb7a9361982281a40ca7faf43b3 |
|
BLAKE2b-256 | be7735db411220f047a379b5c9c68dc75b0303e960c5bbfba910604ffa24c036 |