fpm/.drone.yml

36 lines
689 B
YAML
Raw Normal View History

2022-08-02 18:30:57 +02:00
---
kind: pipeline
type: docker
2022-08-02 18:30:57 +02:00
name: default
steps:
- name: run gitleaks
image: plugins/gitleaks
settings:
path: .
2022-08-06 20:23:52 +02:00
2022-08-02 18:32:33 +02:00
- name: hadolint
image: hadolint/hadolint:latest-debian
commands:
- hadolint --version
- hadolint Dockerfile
2022-08-06 20:23:52 +02:00
2022-08-02 18:30:57 +02:00
- name: docker_build_and_push
image: plugins/docker
settings:
2022-08-06 20:23:52 +02:00
username:
from_secret: DOCKERHUB_USER
2022-08-02 18:30:57 +02:00
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
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}
2023-04-10 18:47:46 +02:00
- ${DRONE_COMMIT_BRANCH}
2022-08-02 18:30:57 +02:00
when:
branch:
2022-09-05 13:05:04 +02:00
- main
event:
exclude:
- pull_request