@ -0,0 +1,87 @@ | |||
--- | |||
kind: pipeline | |||
type: docker | |||
name: lint | |||
platform: | |||
os: linux | |||
arch: arm64 | |||
steps: | |||
- name: helm lint | |||
pull: always | |||
image: alpine:3.16 | |||
commands: | |||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm | |||
- helm lint | |||
- name: helm template | |||
pull: always | |||
image: alpine:3.16 | |||
commands: | |||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm | |||
- helm dependency update | |||
- helm template --debug gitea-helm . | |||
- name: verify readme | |||
pull: always | |||
image: alpine:3.16 | |||
commands: | |||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing make npm git | |||
- make readme | |||
- git diff --exit-code --name-only README.md | |||
- name: discord | |||
pull: always | |||
image: appleboy/drone-discord:1.2.4 | |||
environment: | |||
DISCORD_WEBHOOK_ID: | |||
from_secret: discord_webhook_id | |||
DISCORD_WEBHOOK_TOKEN: | |||
from_secret: discord_webhook_token | |||
when: | |||
status: | |||
- changed | |||
- failure | |||
--- | |||
kind: pipeline | |||
type: docker | |||
name: release-version | |||
platform: | |||
os: linux | |||
arch: arm64 | |||
trigger: | |||
event: | |||
- tag | |||
steps: | |||
- name: generate-chart | |||
pull: always | |||
image: alpine:3.16 | |||
commands: | |||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm | |||
- apk add --no-cache curl | |||
- helm dependency update | |||
- helm package --version "${DRONE_TAG##v}" ./ | |||
- mkdir gitea | |||
- mv gitea*.tgz gitea/ | |||
- curl -L -o gitea/index.yaml https://dl.gitea.io/charts/index.yaml | |||
- helm repo index gitea/ --url https://dl.gitea.io/charts --merge gitea/index.yaml | |||
- name: upload-chart | |||
pull: always | |||
image: plugins/s3:latest | |||
settings: | |||
bucket: gitea-artifacts | |||
endpoint: https://ams3.digitaloceanspaces.com | |||
access_key: | |||
from_secret: aws_access_key_id | |||
secret_key: | |||
from_secret: aws_secret_access_key | |||
source: gitea/* | |||
target: /charts | |||
strip_prefix: gitea/ |
@ -0,0 +1,6 @@ | |||
* text=auto | |||
Makefile* text whitespace=-tab-in-indent | |||
*.sh text eol=lf | |||
*.md diff=markdown | |||
*.py diff=python |
@ -0,0 +1,174 @@ | |||
# Config | |||
*.conf | |||
cookies | |||
*cookies.txt | |||
.netrc | |||
# Downloaded | |||
*.annotations.xml | |||
*.aria2 | |||
*.description | |||
*.dump | |||
*.frag | |||
*.frag.aria2 | |||
*.frag.urls | |||
*.info.json | |||
*.live_chat.json | |||
*.meta | |||
*.part* | |||
*.tmp | |||
*.temp | |||
*.unknown_video | |||
*.ytdl | |||
.cache/ | |||
*.3gp | |||
*.ape | |||
*.ass | |||
*.avi | |||
*.desktop | |||
*.f4v | |||
*.flac | |||
*.flv | |||
*.jpeg | |||
*.jpg | |||
*.m4a | |||
*.m4v | |||
*.mhtml | |||
*.mkv | |||
*.mov | |||
*.mp3 | |||
*.mp4 | |||
*.mpga | |||
*.oga | |||
*.ogg | |||
*.opus | |||
*.png | |||
*.sbv | |||
*.srt | |||
*.swf | |||
*.swp | |||
*.tt | |||
*.ttml | |||
*.url | |||
*.vtt | |||
*.wav | |||
*.webloc | |||
*.webm | |||
*.webp | |||
*.images | |||
# Allow config/media files in testdata | |||
!test/** | |||
# Python | |||
*.pyc | |||
*.pyo | |||
.pytest_cache | |||
wine-py2exe/ | |||
py2exe.log | |||
build/ | |||
dist/ | |||
zip/ | |||
tmp/ | |||
venv/ | |||
completions/ | |||
# Misc | |||
*~ | |||
*.DS_Store | |||
*.kate-swp | |||
MANIFEST | |||
test/local_parameters.json | |||
.coverage | |||
cover/ | |||
secrets/ | |||
updates_key.pem | |||
*.egg-info | |||
.tox | |||
*.class | |||
*.isorted | |||
*.stackdump | |||
# Generated | |||
AUTHORS | |||
README.txt | |||
.mailmap | |||
*.1 | |||
*.bash-completion | |||
*.fish | |||
*.tar.gz | |||
*.zsh | |||
*.spec | |||
test/testdata/sigs/player-*.js | |||
yt_dlp/build_config.py | |||
# Binary | |||
/youtube-dl | |||
/youtube-dlc | |||
/yt-dlp | |||
yt-dlp.zip | |||
*.exe | |||
# Downloaded | |||
*.srt | |||
*.ttml | |||
*.sbv | |||
*.vtt | |||
*.flv | |||
*.mp4 | |||
*.m4a | |||
*.m4v | |||
*.mp3 | |||
*.3gp | |||
*.webm | |||
*.wav | |||
*.ape | |||
*.mkv | |||
*.swf | |||
*.part | |||
*.part-* | |||
*.ytdl | |||
*.dump | |||
*.frag | |||
*.frag.urls | |||
*.aria2 | |||
*.swp | |||
*.ogg | |||
*.opus | |||
*.info.json | |||
*.live_chat.json | |||
*.jpg | |||
*.png | |||
*.webp | |||
*.annotations.xml | |||
*.description | |||
*.lock | |||
# Config | |||
*.conf | |||
*.spec | |||
cookies | |||
cookies.txt | |||
# Text Editor / IDE | |||
.idea | |||
*.iml | |||
.vscode | |||
*.sublime-* | |||
*.code-workspace | |||
# Lazy extractors | |||
*/extractor/lazy_extractors.py | |||
# Plugins | |||
ytdlp_plugins/extractor/* | |||
!ytdlp_plugins/extractor/__init__.py | |||
!ytdlp_plugins/extractor/sample.py | |||
ytdlp_plugins/postprocessor/* | |||
!ytdlp_plugins/postprocessor/__init__.py | |||
!ytdlp_plugins/postprocessor/sample.py | |||
# Added by GH Codespaces | |||
pythonenv3.8/ | |||
.venv/ |