This repository has been archived on 2024-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
munin-server/.drone.yml

35 lines
798 B
YAML
Raw Normal View History

2022-07-23 10:48:11 +02:00
---
kind: pipeline
type: docker
2022-07-23 10:48:11 +02:00
name: default
steps:
2023-04-20 13:31:44 +02:00
# prüfe ob secrets im Repo sind
2022-07-24 20:33:09 +02:00
- name: run gitleaks
image: plugins/gitleaks
settings:
path: .
2022-08-06 20:25:45 +02:00
2023-04-20 13:31:44 +02:00
# linter für Dockerfiles
# https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md
2022-08-06 20:25:45 +02:00
- name: hadolint
image: hadolint/hadolint:latest-debian
2023-04-20 13:31:44 +02:00
# image: ghcr.io/hadolint/hadolint:latest-debian
2022-08-06 20:25:45 +02:00
commands:
- hadolint --version
- hadolint Dockerfile
2023-04-20 13:31:44 +02:00
- name: docker_build_and_push
2022-07-23 10:48:11 +02:00
image: plugins/docker
settings:
dockerfile: Dockerfile
2023-04-20 13:32:48 +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:
- ${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