fix: the Dockerfile MUST have a lowercase F for GitHub Action to work

This commit is contained in:
Jeroen de Bruijn 2020-03-19 20:55:40 +01:00
parent 3ff327a8cc
commit 3e4d5f0dd6
No known key found for this signature in database
GPG key ID: 7D12D6AB2A547EBB
5 changed files with 19 additions and 16 deletions

View file

@ -7,15 +7,9 @@ on:
jobs: jobs:
basic-example: basic-example:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
fetch-depth: 0
- name: ls
run: npm ci
- name: Renovate - name: Renovate
uses: ./ uses: ./
with: with:

View file

@ -8,6 +8,4 @@ inputs:
default: 'src/config.js' default: 'src/config.js'
runs: runs:
using: 'docker' using: 'docker'
image: 'src/dockerfile' image: 'src/Dockerfile'
args:
- ${{ inputs.configurationFile }}

5
src/Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM renovate/renovate:19.175.0
COPY src/entrypoint.sh /usr/entrypoint.sh
ENTRYPOINT ["/usr/entrypoint.sh"]

View file

@ -1,5 +0,0 @@
FROM renovate/renovate:19.175.0
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View file

@ -2,9 +2,20 @@
# #
# Entrypoint for Docker. # Entrypoint for Docker.
configurationFile="${1}" readonly CONFIGURATION_FILE="${1}"
readonly CONFIGURATION_PATH="${GITHUB_WORKSPACE}/${CONFIGURATION_FILE}"
cp "${GITHUB_WORKSPACE}/${configurationFile}" '/usr/src/app/config.js' if [[ ! -f "${CONFIGURATION_PATH}" ]]; then
echo "ERROR: Couldn't find file ${CONFIGURATION_PATH}" 1>&2
exit 1
fi
cp "${CONFIGURATION_PATH}" '/usr/src/app/config.js'
# Run Renovate. # Run Renovate.
#
# This mimics the original entrypoint of the renovate/renovate Docker container.
# See the following link for this entrypoint in the renovate/renovate Docker
# container.
# https://github.com/renovatebot/renovate/blob/19.175.3/Dockerfile#L220
node /usr/src/app/dist/renovate.js node /usr/src/app/dist/renovate.js