From e1ad003afdc3660df7cccf86ec585b3de6f310fb Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Wed, 15 Feb 2023 00:57:15 +0100 Subject: [PATCH] initial commit --- .drone.yml | 14 ++++++++++++++ Dockerfile | 16 ++++++++++++++++ README.md | 1 + renovate.json | 10 ++++++++++ requirements.txt | 1 + 5 files changed, 42 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 renovate.json create mode 100644 requirements.txt diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b360013 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,14 @@ +kind: pipeline +name: deploy +steps: +- name: docker + image: plugins/docker + settings: + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_PASSWORD + repo: aaronriedel/ansible-lint + tags: + - latest + - ${DRONE_COMMIT_SHA:0:8} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5be83ee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM amd64/python:3.11.2-alpine3.16 +RUN apk add --no-cache git +WORKDIR ./ +ARG PUID=1000 +ENV GROUP dockergroup +ENV USER docker +ENV HOMEDIR "/home/${USER}" +ENV PATH ${HOMEDIR}/.local/bin:$PATH +RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}" +USER ${USER} +WORKDIR ${HOMEDIR} +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt +RUN rm requirements.txt + +CMD [ "ansible-lint" ] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3696ebb --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +[![Build Status](https://drone.ar21.de/api/badges/aaron/ansible-lint/status.svg)](https://drone.ar21.de/aaron/ansible-lint) \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..04a4f6a --- /dev/null +++ b/renovate.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "packageRules": [ + { + "matchPackagePatterns": ["*"], + "automerge": true, + "automergeType": "branch" + } + ] +} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..adc797c --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +ansible-lint==6.12.2 \ No newline at end of file