setup renovate-bot
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-10-18 22:20:24 +02:00
parent 5c3f6513be
commit 8424c5becb
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
3 changed files with 21 additions and 10 deletions

View File

@ -1,2 +1,2 @@
- BUGFIX - INTERNAL
- add missing condition for `MOLECULE_ANSIBLE_VAULT_PASSWORD` - setup renovate-bot

View File

@ -6,14 +6,18 @@ LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
org.label-schema.vendor="Robert Kaussow" \ org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0" org.label-schema.schema-version="1.0"
ARG ANSIBLE_VERSION=2.9.12 ARG ANSIBLE_VERSION
ARG BUILD_VERSION=latest ARG BUILD_VERSION
# renovate: datasource=pypi depName=molecule
ENV MOLECULE_VERSION="${BUILD_VERSION:-3.0.8}"
# renovate: datasource=pypi depName=ansible
ENV ANSIBLE_VERSION="${ANSIBLE_VERSION:-2.9.12}"
ENV PY_COLORS=1 \ ENV PY_COLORS=1 \
ANSIBLE_FORCE_COLOR=true \ ANSIBLE_FORCE_COLOR=true \
USER=root \ USER=root \
PATH=/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin \ PATH=/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
MOLECULE_VERSION="${BUILD_VERSION:-latest}"
COPY overlay/ / COPY overlay/ /
@ -22,14 +26,14 @@ RUN apk add --update --no-cache --virtual .build-deps gcc make libffi-dev musl-d
apk add --update --no-cache git openssh-client && \ apk add --update --no-cache git openssh-client && \
echo "Installing ansible 'v$ANSIBLE_VERSION' ..." && \ echo "Installing ansible 'v$ANSIBLE_VERSION' ..." && \
pip install -qq --upgrade --no-cache-dir pip setuptools~=49.0 requests~=2.23 && \ pip install -qq --upgrade --no-cache-dir pip setuptools~=49.0 requests~=2.23 && \
pip install -qq --no-cache-dir ansible~="$ANSIBLE_VERSION" && \ pip install -qq --no-cache-dir ansible=="$ANSIBLE_VERSION" && \
echo "Installing requirements ..." && \ echo "Installing requirements ..." && \
MOLECULE_VERSION="${MOLECULE_VERSION##v}" && \ MOLECULE_VERSION="${MOLECULE_VERSION##v}" && \
MOLECULE_MAJOR="${MOLECULE_VERSION%%.*}" && \ MOLECULE_MAJOR="${MOLECULE_VERSION%%.*}" && \
pip install -qq --no-cache-dir -r /root/requirements.txt && \ pip install -qq --no-cache-dir -r /root/requirements.txt && \
if [ -z "${MOLECULE_MAJOR//[0-9]}" ] && [ -n "$MOLECULE_MAJOR" ]; then \ if [ -z "${MOLECULE_MAJOR//[0-9]}" ] && [ -n "$MOLECULE_MAJOR" ]; then \
echo "Installing molecule version '$MOLECULE_VERSION' ..." && \ echo "Installing molecule version '$MOLECULE_VERSION' ..." && \
pip install -qq --no-cache-dir molecule~="$MOLECULE_VERSION"; \ pip install -qq --no-cache-dir molecule[docker,podman,lint]=="$MOLECULE_VERSION"; \
else \ else \
echo "Installing latest molecule ..." && \ echo "Installing latest molecule ..." && \
pip install -qq --no-cache-dir molecule; \ pip install -qq --no-cache-dir molecule; \

View File

@ -1,6 +1,13 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": ["config:base"],
"config:base" "ignorePresets": [":prHourlyLimit2"],
"regexManagers": [
{
"fileMatch": ["^Dockerfile$"],
"matchStrings": [
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sENV .*?_VERSION=\"\\${.*:-(?<currentValue>.*)}\"\\s"
]
}
] ]
} }