mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 08:52:35 +00:00
feat: add self-hosted renovate sources
This commit is contained in:
parent
515e31cf90
commit
5f5662bb86
3 changed files with 28 additions and 0 deletions
13
action.yml
Normal file
13
action.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
name: 'Self-Hosted Renovate'
|
||||||
|
description: 'GitHub Action to run self-hosted Renovate.'
|
||||||
|
author: 'Jeroen de Bruijn'
|
||||||
|
inputs:
|
||||||
|
configurationFile:
|
||||||
|
description: 'Renovate configuration file'
|
||||||
|
required: false
|
||||||
|
default: 'src/config.js'
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'src/Dockerfile'
|
||||||
|
args:
|
||||||
|
- ${{ inputs.configurationFile }}
|
||||||
5
src/DockerFile
Normal file
5
src/DockerFile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
FROM renovate/renovate:19.175.0
|
||||||
|
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
10
src/entrypoint.sh
Normal file
10
src/entrypoint.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Entrypoint for Docker.
|
||||||
|
|
||||||
|
configurationFile="${1}"
|
||||||
|
|
||||||
|
cp "${configurationFile}" '/usr/src/app/config.js'
|
||||||
|
|
||||||
|
# Run Renovate.
|
||||||
|
node /usr/src/app/dist/renovate.js
|
||||||
Loading…
Add table
Add a link
Reference in a new issue