podcastrr/.drone.yml
2025-06-17 20:17:23 -07:00

55 lines
1.2 KiB
YAML

# NOTE: This Drone CI configuration is being replaced by Forgejo Actions
# See .forgejo/workflows/ directory for the new CI/CD configuration
# This file is kept for reference and backward compatibility
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