miniflux-filter/.drone.yml

91 lines
1.9 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: default
2023-04-28 21:41:14 +02:00
environment:
2023-04-28 21:51:40 +02:00
http_proxy: http:/docker10.grote.lan:9999 # für apt
2023-04-28 21:41:14 +02:00
steps:
2022-07-24 20:31:02 +02:00
- name: run gitleaks
image: plugins/gitleaks
settings:
path: .
2023-04-23 16:23:53 +02:00
when:
event:
exclude:
- tag
2022-08-06 20:25:24 +02:00
- name: hadolint
image: hadolint/hadolint:latest-debian
commands:
- hadolint --version
2022-07-24 09:29:03 +02:00
- hadolint Dockerfile
2022-08-06 20:25:24 +02:00
- name: shellcheck
image: koalaman/shellcheck-alpine:stable
commands:
- "shellcheck filter.sh"
2022-08-06 20:25:24 +02:00
2023-04-20 13:48:25 +02:00
- name: docker_build_and_push_selfhosted
image: plugins/docker
settings:
2022-07-24 09:29:03 +02:00
dockerfile: Dockerfile
2023-04-20 13:48:25 +02:00
repo: registry.mgrote.net/miniflux-filter
registry: registry.mgrote.net
tags:
- ${DRONE_COMMIT_SHA:0:8}
2023-04-10 18:38:19 +02:00
- ${DRONE_COMMIT_BRANCH}
2023-04-20 13:48:25 +02:00
- latest
when:
event:
exclude:
- pull_request
2023-04-23 16:23:53 +02:00
- tag
2023-04-10 18:55:55 +02:00
2023-04-20 13:48:25 +02:00
- name: docker_build_and_push_dockerhub
2023-04-10 18:55:55 +02:00
image: plugins/docker
settings:
2023-04-20 13:48:25 +02:00
username:
from_secret: DOCKERHUB_USER
2023-04-10 18:55:55 +02:00
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
repo: quotengrote/miniflux-filter
tags:
- ${DRONE_COMMIT_SHA:0:8}
2023-04-10 18:55:55 +02:00
- ${DRONE_COMMIT_BRANCH}
2023-04-20 13:48:25 +02:00
- latest
2023-04-10 18:55:55 +02:00
when:
event:
exclude:
- pull_request
2023-04-23 16:23:53 +02:00
- tag
- name: docker_build_and_push_selfhosted_tag
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/miniflux-filter
registry: registry.mgrote.net
tags:
- ${DRONE_TAG}
when:
event:
- tag
- name: docker_build_and_push_dockerhub_tag
image: plugins/docker
settings:
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
repo: quotengrote/miniflux-filter
tags:
- ${DRONE_TAG}
when:
event:
- tag