Build packages, maybe?
This commit is contained in:
parent
f7a919ebf2
commit
7f423652e3
7 changed files with 295 additions and 9 deletions
51
.drone.yml
Normal file
51
.drone.yml
Normal file
|
@ -0,0 +1,51 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue