podcastrr/.drone.yml
2025-06-17 19:37:05 -07:00

51 lines
No EOL
979 B
YAML

kind: pipeline
type: docker
name: podcastrr
steps:
- name: test
image: python:3.8-slim
commands:
- pip install -r requirements.txt
- pytest
- name: build
image: plugins/docker
settings:
repo: ${DRONE_REPO_OWNER}/podcastrr
registry: ${DRONE_REGISTRY}
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- latest
- ${DRONE_COMMIT_SHA:0:8}
dockerfile: Dockerfile
when:
branch:
- main
event:
- push
- name: notify
image: plugins/webhook
settings:
urls:
from_secret: webhook_url
content_type: application/json
template: |
{
"text": "Build ${DRONE_BUILD_NUMBER} for ${DRONE_REPO} completed with status ${DRONE_BUILD_STATUS}"
}
when:
status:
- success
- failure
trigger:
branch:
- main
event:
- push
- pull_request