allzweckcontainer/.drone.yml

35 lines
848 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
2023-04-20 12:39:04 +02:00
- name: docker_build_and_push
image: plugins/docker
settings:
username:
2023-04-20 12:37:10 +02:00
from_secret: OCI-REGISTRY-USER
2023-04-20 12:39:04 +02:00
password:
2023-04-20 12:37:10 +02:00
from_secret: OCI-REGISTRY-PASS
2023-04-20 12:39:04 +02:00
dockerfile: Dockerfile
2023-04-20 12:39:43 +02:00
repo: registry.mgrote.net/allzweckcontainer
registry: registry.mgrote.net
2023-04-20 12:39:04 +02:00
tags:
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_COMMIT_BRANCH}
- latest