Skip to content

Enable custom commands

Background

coach will finish merge request for !147 (closed)

Original description

This MR extends the current helm chart to allow injecting shell commands before the entrypoint. Our use-case is to create a docker config in the gitlab-runner home directory for the ECR credentials via:

preEntrypointCommands:
  - mkdir -p /home/gitlab-runner/.docker/
  - "echo '{\"credHelpers\": {\"AWS_ACCOUNT_IND.dkr.ecr.eu-central-1.amazonaws.com\": \"ecr-login\" }}' > /home/gitlab-runner/.docker/config.json"

Let me know if anything else is missing on this MR.

Merge request reports