You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
3 years ago
|
# vim:ts=2:sts=2:sw=2:et
|
||
|
#
|
||
|
# Author: Hari Sekhon
|
||
|
# Date: 2021-12-13 18:59:29 +0000 (Mon, 13 Dec 2021)
|
||
|
#
|
||
|
# https://github.com/HariSekhon/bash-tools
|
||
|
#
|
||
|
# License: see accompanying Hari Sekhon LICENSE file
|
||
|
#
|
||
|
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
|
||
|
#
|
||
|
# https://www.linkedin.com/in/HariSekhon
|
||
|
#
|
||
|
|
||
|
# https://circleci.com/docs/2.0/runner-installation-docker/
|
||
|
|
||
|
# Set up runner token:
|
||
|
#
|
||
3 years ago
|
# circleci runner resource-class create <namespace>/<resource> "description" --generate-token
|
||
3 years ago
|
#
|
||
|
# eg.
|
||
|
#
|
||
3 years ago
|
# circleci runner resource-class create harisekhon/docker-runner "Docker Runner" --generate-token
|
||
3 years ago
|
|
||
3 years ago
|
# For a much more advanced setup ready to go on Kubernetes with auto-scaling, see
|
||
|
#
|
||
|
# https://github.com/HariSekhon/Kubernetes-configs
|
||
|
|
||
3 years ago
|
version: '2.2'
|
||
|
|
||
|
services:
|
||
|
circleci:
|
||
|
image: circleci/runner:launch-agent
|
||
3 years ago
|
# or replace with an image with built-in dependencies - see https://github/harisekhon/Dockerfiles
|
||
|
#image: harisekhon/circleci-runner
|
||
3 years ago
|
environment:
|
||
|
CIRCLECI_API_TOKEN: $CIRCLECI_API_TOKEN # use the token output by the 'runner resource-class create' command above
|
||
3 years ago
|
CIRCLECI_RESOURCE_CLASS: ${CIRCLECI_RESOURCE_CLASS:-harisekhon/docker-runner} # <namespace>/<resource>
|