Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.63 KB

README.md

File metadata and controls

40 lines (32 loc) · 1.63 KB

Renovate Pipe

A custom Bitbucket pipe for running Renovate in Bitbucket as a scheduled pipeline.

Environment Variables

Variable Name Default Notes
RENOVATE_USERNAME N/A Username of a Bitbucket account to run renovate as.
RENOVATE_PASSWORD N/A App Password of the Bitbucket account.
GITHUB_COM_TOKEN N/A (Optional) Github Personal Access Token with repo:public permission
CONFIG_FILE config.js (Optional) Directory where the base dependency files are.

All other environment variables found at https://docs.renovatebot.com/ can be used.

To create an app password see here.

It is recommended to create a dedicated Bitbucket account to run the renovate pipe as.

Example Setup

definitions:
  services:
    docker:
      memory: 3072

pipelines:
  custom:
    renovate:
      - step:
          name: "Run Renovate"
          script:
            - pipe: docker://aligent/renovate-pipe
              variables:
                RENOVATE_PASSWORD: $RENOVATE_PASSWORD
                RENOVATE_USERNAME: $RENOVATE_USERNAME
                GITHUB_COM_TOKEN: $GITHUB_COM_TOKEN

SSH Authentication

This pipeline will pickup the SSH Key of the repository and pass it through to the underlying npm, composer, etc commands being run.