From 5f43aab1a7be05d7ba215594f8993fbac07ce855 Mon Sep 17 00:00:00 2001 From: mg Date: Wed, 20 Jul 2022 20:33:02 +0200 Subject: [PATCH] Integration drone.io (#7) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/miniflux-filter/pulls/7 --- .drone.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ dockerfile | 1 + 2 files changed, 48 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..06456af --- /dev/null +++ b/.drone.yml @@ -0,0 +1,47 @@ +--- +kind: pipeline +type: docker +name: default +steps: + # https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md + - name: hadolint + image: hadolint/hadolint:latest-debian + # image: ghcr.io/hadolint/hadolint:latest-debian + commands: + - hadolint --version + - hadolint dockerfile + # https://www.shellcheck.net/wiki/Drone + - name: shellcheck + image: koalaman/shellcheck-alpine:stable + commands: + - "shellcheck filter.sh" + - name: docker_build_and_push + image: plugins/docker + settings: + # Dockerhub-Username + username: quotengrote + # Dockerhub-Password + # als Org-Secret hinterlegt + password: + from_secret: DOCKERHUB_PASS + # Container-Registry + # registry: hub.docker.com + # Name des Containerfiles + dockerfile: dockerfile + # Repo auf dem Dockerhub + repo: quotengrote/miniflux-filter + tags: + - latest + - ${DRONE_COMMIT_SHA:0:8} + when: + branch: + - master + event: + include: + - push +# - pull_request + + +# tag + +# auch hastebin und andere container vom hub diff --git a/dockerfile b/dockerfile index 107e5a8..45f9efa 100644 --- a/dockerfile +++ b/dockerfile @@ -2,6 +2,7 @@ FROM ubuntu:focal # hadolint ignore=DL3008 RUN apt-get update \ + && apt-get upgrade -y \ && apt-get install -y --no-install-recommends bash curl ca-certificates jq curl findutils sed coreutils gawk \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \