This repository has been archived on 2024-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
python-api-server/.drone.yml

84 lines
1.7 KiB
YAML
Raw Normal View History

2023-04-12 15:56:47 +02:00
---
kind: pipeline
type: docker
name: default
steps:
2023-04-23 16:18:25 +02:00
- name: run gitleaks
image: plugins/gitleaks
settings:
path: .
when:
event:
exclude:
- tag
2023-04-12 15:56:47 +02:00
2023-04-23 16:18:25 +02:00
- name: hadolint
image: hadolint/hadolint:latest-debian
commands:
- hadolint --version
- hadolint Dockerfile
2023-04-20 13:43:26 +02:00
- name: docker_build_and_push_selfhosted
2023-04-12 15:56:47 +02:00
image: plugins/docker
settings:
dockerfile: Dockerfile
2023-04-20 13:46:41 +02:00
repo: registry.mgrote.net/python-api-server
2023-04-20 13:43:26 +02:00
registry: registry.mgrote.net
2023-04-12 15:56:47 +02:00
tags:
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_COMMIT_BRANCH}
2023-04-20 13:40:21 +02:00
- latest
2023-04-20 13:48:58 +02:00
when:
event:
exclude:
- pull_request
2023-04-23 16:14:47 +02:00
- tag
2023-04-23 16:07:03 +02:00
- name: docker_build_and_push_dockerhub
image: plugins/docker
settings:
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
repo: quotengrote/python-api-server
tags:
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_COMMIT_BRANCH}
- latest
when:
event:
exclude:
- pull_request
2023-04-23 16:14:47 +02:00
- tag
2023-04-23 16:07:03 +02:00
- name: docker_build_and_push_selfhosted_tag
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/python-api-server
registry: registry.mgrote.net
tags:
2023-04-23 16:16:40 +02:00
- ${DRONE_TAG}
2023-04-23 16:07:03 +02:00
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/python-api-server
tags:
2023-04-23 16:16:40 +02:00
- ${DRONE_TAG}
2023-04-23 16:07:03 +02:00
when:
event:
- tag