Integration drone.io (#7)
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/miniflux-filter#7
This commit is contained in:
parent
d5b60afe75
commit
5f43aab1a7
2 changed files with 48 additions and 0 deletions
47
.drone.yml
Normal file
47
.drone.yml
Normal file
|
@ -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
|
|
@ -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/* \
|
||||
|
|
Loading…
Reference in a new issue