mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-18 01:42:34 +00:00
chore(ci): refactor build (#29)
* chore: simplify workflows * chore: only build on master and renovate breanches * chore: rename jobs * chore: cancel previous builds * chore: testing * chore: update config * chore: add tests * chore: update renovate * chore: simplify entrypoint * chore: pass to default entrypoint * chore: include forks * fix: wrong home * chore: update config * fix: set renovate token in command rather than exporting Co-authored-by: Jeroen de Bruijn <vidavidorra+jdbruijn@gmail.com>
This commit is contained in:
parent
d11b5f6a7e
commit
b95ce7668b
7 changed files with 120 additions and 45 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM renovate/renovate:19.219.11
|
||||
FROM renovate/renovate:19.221.0
|
||||
|
||||
COPY entrypoint.sh /usr/entrypoint.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,11 @@
|
|||
#
|
||||
# Entrypoint for Docker.
|
||||
|
||||
readonly CONFIGURATION_FILE="${1}"
|
||||
readonly TOKEN="${2}"
|
||||
export RENOVATE_CONFIG_FILE="${GITHUB_WORKSPACE}/${1}"
|
||||
readonly _RENOVATE_TOKEN="${2}"
|
||||
|
||||
export RENOVATE_CONFIG_FILE="${GITHUB_WORKSPACE}/${CONFIGURATION_FILE}"
|
||||
# We are running as ubuntu, so no write access to /github/home
|
||||
export HOME=/home/ubuntu
|
||||
|
||||
if [[ ! -f "${RENOVATE_CONFIG_FILE}" ]]; then
|
||||
echo "ERROR: Couldn't find file ${RENOVATE_CONFIG_FILE}" 1>&2
|
||||
|
|
@ -16,5 +17,6 @@ fi
|
|||
#
|
||||
# Mimic the original ENTRYPOINT of the renovate/renovate Docker container. See
|
||||
# the following link for this entry.
|
||||
# https://github.com/renovatebot/renovate/blob/19.175.3/Dockerfile#L220
|
||||
RENOVATE_TOKEN="${TOKEN}" node /usr/src/app/dist/renovate.js
|
||||
# https://github.com/renovatebot/docker-renovate/blob/d3aa0d99931ea7ad7e901a1e538eba0d61268229/Dockerfile#L63
|
||||
|
||||
RENOVATE_TOKEN="${_RENOVATE_TOKEN}" /usr/local/bin/docker-entrypoint.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue