fpm/.drone.yml

43 lines
1,013 B
YAML
Raw Normal View History

2022-08-02 18:30:57 +02:00
---
kind: pipeline
type: docker
name: default
steps:
- name: run gitleaks
image: plugins/gitleaks
settings:
path: .
# https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md
2022-08-02 18:32:33 +02:00
- name: hadolint
image: hadolint/hadolint:latest-debian
# image: ghcr.io/hadolint/hadolint:latest-debian
commands:
- hadolint --version
- hadolint Dockerfile
2022-08-02 18:30:57 +02:00
- name: docker_build_and_push
image: plugins/docker
environment:
http_proxy: http://acng.grote.lan:9999
settings:
# Dockerhub-Username
username: quotengrote
# Dockerhub-Password
# als Org-Secret hinterlegt
password:
from_secret: DOCKERHUB_PASS
# Container-Registry
# registry: hub.docker.com
# Name des Containerfiles
dockerfile: Dockerfile
# Repo auf dem Dockerhub
2022-08-02 18:36:17 +02:00
repo: quotengrote/fpm
2022-08-02 18:30:57 +02:00
tags:
- latest
- ${DRONE_COMMIT_SHA:0:8}
when:
branch:
2022-08-02 18:32:14 +02:00
- main
2022-08-02 18:30:57 +02:00
event:
include:
- push