2022-07-23 10:48:11 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2023-03-21 17:54:20 +01:00
|
|
|
type: docker
|
2023-06-10 11:12:31 +02:00
|
|
|
name: linting
|
2023-04-28 21:44:47 +02:00
|
|
|
|
|
|
|
environment:
|
2023-04-28 21:55:55 +02:00
|
|
|
http_proxy: http://192.168.2.43:9999 # für apt, zeigt auf docker10.grote.lan
|
2023-04-28 21:44:47 +02:00
|
|
|
|
2022-07-23 10:48:11 +02:00
|
|
|
steps:
|
2023-06-10 11:12:31 +02:00
|
|
|
- name: gitleaks
|
2022-07-24 20:33:09 +02:00
|
|
|
image: plugins/gitleaks
|
|
|
|
settings:
|
|
|
|
path: .
|
2023-04-23 16:21:20 +02:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
2022-08-06 20:25:45 +02:00
|
|
|
|
|
|
|
- name: hadolint
|
|
|
|
image: hadolint/hadolint:latest-debian
|
|
|
|
commands:
|
2023-06-10 11:12:31 +02:00
|
|
|
- hadolint Dockerfile
|
2022-08-06 20:25:45 +02:00
|
|
|
|
2023-06-10 11:12:31 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: selfhosted
|
|
|
|
depends_on: # bezieht sich auf linting pipeline
|
|
|
|
- linting
|
|
|
|
environment:
|
|
|
|
http_proxy: http://192.168.2.43:9999 # für apt, zeigt auf docker10.grote.lan
|
|
|
|
steps:
|
2023-04-23 16:21:20 +02:00
|
|
|
- name: docker_build_and_push_selfhosted
|
2022-07-23 10:48:11 +02:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
2023-04-23 16:22:11 +02:00
|
|
|
repo: registry.mgrote.net/munin-server
|
2023-04-20 13:31:44 +02:00
|
|
|
registry: registry.mgrote.net
|
2022-07-23 10:48:11 +02:00
|
|
|
tags:
|
2023-04-25 21:15:30 +02:00
|
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
2023-04-16 12:08:53 +02:00
|
|
|
- ${DRONE_COMMIT_BRANCH}
|
2023-04-20 13:31:44 +02:00
|
|
|
- latest
|
2023-04-20 13:48:45 +02:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2023-04-23 16:21:20 +02:00
|
|
|
- tag
|
|
|
|
|
2023-06-10 11:12:31 +02:00
|
|
|
- name: docker_build_and_push_selfhosted_tag
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
repo: registry.mgrote.net/munin-server
|
|
|
|
registry: registry.mgrote.net
|
|
|
|
tags:
|
|
|
|
- ${DRONE_TAG}
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
2023-04-23 16:21:20 +02:00
|
|
|
|
2023-06-10 11:12:31 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: dockerhub
|
|
|
|
environment:
|
|
|
|
http_proxy: http://192.168.2.43:9999 # für apt, zeigt auf docker10.grote.lan
|
|
|
|
depends_on: # bezieht sich auf linting pipeline
|
|
|
|
- linting
|
|
|
|
steps:
|
2023-04-23 16:21:20 +02:00
|
|
|
- name: docker_build_and_push_dockerhub
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: DOCKERHUB_USER
|
|
|
|
password:
|
|
|
|
from_secret: DOCKERHUB_PASS
|
|
|
|
dockerfile: Dockerfile
|
2023-04-23 16:22:11 +02:00
|
|
|
repo: quotengrote/munin-server
|
2023-04-23 16:21:20 +02:00
|
|
|
tags:
|
2023-04-25 21:15:30 +02:00
|
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
2023-04-23 16:21:20 +02:00
|
|
|
- ${DRONE_COMMIT_BRANCH}
|
|
|
|
- latest
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: docker_build_and_push_dockerhub_tag
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: DOCKERHUB_USER
|
|
|
|
password:
|
|
|
|
from_secret: DOCKERHUB_PASS
|
|
|
|
dockerfile: Dockerfile
|
2023-04-23 16:22:11 +02:00
|
|
|
repo: quotengrote/munin-server
|
2023-04-23 16:21:20 +02:00
|
|
|
tags:
|
|
|
|
- ${DRONE_TAG}
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|