fpm/.drone.yml

96 lines
1.8 KiB
YAML
Raw Normal View History

2022-08-02 18:30:57 +02:00
---
kind: pipeline
type: docker
2023-06-28 22:52:25 +02:00
name: linting
2022-08-02 18:30:57 +02:00
steps:
2023-06-28 22:52:25 +02:00
- name: gitleaks
2022-08-02 18:30:57 +02:00
image: plugins/gitleaks
settings:
path: .
2023-06-28 22:52:25 +02:00
when:
event:
exclude:
- tag
2022-08-06 20:23:52 +02:00
2022-08-02 18:32:33 +02:00
- name: hadolint
image: hadolint/hadolint:latest-debian
commands:
2023-06-28 22:52:25 +02:00
- hadolint Dockerfile
2022-08-06 20:23:52 +02:00
2023-06-28 22:52:25 +02:00
---
kind: pipeline
type: docker
name: selfhosted
depends_on: # bezieht sich auf linting pipeline
- linting
steps:
- name: docker_build_and_push_selfhosted
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/fpm
registry: registry.mgrote.net
tags:
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_COMMIT_BRANCH}
- latest
when:
event:
exclude:
- pull_request
- tag
- name: docker_build_and_push_selfhosted_tag
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/fpm
registry: registry.mgrote.net
tags:
- ${DRONE_TAG}
when:
event:
- tag
---
kind: pipeline
type: docker
name: dockerhub
depends_on: # bezieht sich auf linting pipeline
- linting
steps:
- name: docker_build_and_push_dockerhub
2022-08-02 18:30:57 +02:00
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:
- ${DRONE_COMMIT_SHA:0:8}
2023-04-10 18:47:46 +02:00
- ${DRONE_COMMIT_BRANCH}
2023-06-28 22:52:25 +02:00
- latest
2022-08-02 18:30:57 +02:00
when:
event:
exclude:
- pull_request
2023-06-28 22:52:25 +02:00
- tag
2023-04-10 18:59:29 +02:00
2023-06-28 22:52:25 +02:00
- name: docker_build_and_push_dockerhub_tag
2023-04-10 18:59:29 +02:00
image: plugins/docker
settings:
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
repo: quotengrote/fpm
tags:
2023-06-28 22:52:25 +02:00
- ${DRONE_TAG}
2023-04-10 18:59:29 +02:00
when:
event:
2023-06-28 22:52:25 +02:00
- tag