allzweckcontainer/.drone.yml

86 lines
1.8 KiB
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
2023-04-28 21:46:10 +02:00
environment:
http_proxy: http://192.168.2.43:9999 # für apt, zeigt auf docker10.grote.lan
2023-04-28 21:46:10 +02:00
2022-08-06 11:07:52 +02:00
steps:
- name: run gitleaks
image: plugins/gitleaks
settings:
path: .
2023-04-23 16:24:30 +02:00
when:
event:
exclude:
- tag
2022-08-06 20:22:13 +02:00
2022-08-06 11:07:52 +02:00
- name: hadolint
image: hadolint/hadolint:latest-debian
commands:
- hadolint --version
- hadolint Dockerfile
2022-08-06 20:22:13 +02:00
2023-04-23 16:24:30 +02:00
- name: docker_build_and_push_selfhosted
2023-04-20 12:39:04 +02:00
image: plugins/docker
settings:
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}
2023-04-20 12:39:04 +02:00
- ${DRONE_COMMIT_BRANCH}
- latest
2023-04-20 13:49:12 +02:00
when:
event:
exclude:
- pull_request
2023-04-23 16:24:30 +02:00
- tag
- name: docker_build_and_push_dockerhub
image: plugins/docker
settings:
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
repo: quotengrote/allzweckcontainer
tags:
- ${DRONE_COMMIT_SHA:0:8}
2023-04-23 16:24:30 +02:00
- ${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/allzweckcontainer
registry: registry.mgrote.net
tags:
- ${DRONE_TAG}
when:
event:
- tag
- name: docker_build_and_push_dockerhub_tag
image: plugins/docker
settings:
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
repo: quotengrote/allzweckcontainer
tags:
- ${DRONE_TAG}
when:
event:
- tag