allzweckcontainer/.drone.yml

40 lines
957 B
YAML
Raw Normal View History

2022-08-06 11:07:52 +02:00
---
kind: pipeline
type: docker
2022-08-06 11:07:52 +02:00
name: default
steps:
2022-08-06 20:22:13 +02:00
# prüfe ob secrets im Repo sind
2022-08-06 11:07:52 +02:00
- name: run gitleaks
image: plugins/gitleaks
settings:
path: .
2022-08-06 20:22:13 +02:00
# linter für Dockerfiles
2022-08-06 11:07:52 +02:00
# 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
2022-08-06 20:22:13 +02:00
# Bauen, taggen und pushen
2023-04-10 18:59:36 +02:00
- name: docker_build_and_push_master
2022-08-06 11:07:52 +02:00
image: plugins/docker
settings:
2022-08-06 20:22:13 +02:00
username:
2023-04-20 11:55:29 +02:00
from_secret: OCI_REGISTRY_USER
2022-08-06 11:07:52 +02:00
password:
2023-04-20 11:55:29 +02:00
from_secret: OCI_REGISTRY_PASS
2022-08-06 11:07:52 +02:00
dockerfile: Dockerfile
2023-04-20 12:04:31 +02:00
repo: registry.mgrote.net/allzweckcontainer
registry: registry.mgrote.net
2023-04-20 12:11:12 +02:00
debug: true
2022-08-06 11:07:52 +02:00
tags:
- latest
- ${DRONE_COMMIT_SHA:0:8}
2023-04-10 18:47:13 +02:00
- ${DRONE_COMMIT_BRANCH}
2023-04-10 18:59:36 +02:00
event:
exclude:
- pull_request