This commit is contained in:
parent
d64964e7cc
commit
bc2f85684c
10 changed files with 127 additions and 54 deletions
|
@ -11,20 +11,18 @@ depends_on:
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: woodpeckerci/plugin-git:v1.6.0
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# build and publish docker image for amd64 - x86
|
# build and publish docker image for amd64 - x86
|
||||||
build-amd64:
|
build-amd64:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
pull: true
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
settings:
|
settings:
|
||||||
repo: olofvndrhr/manga-dlp
|
repo: olofvndrhr/manga-dlp
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
|
|
@ -11,20 +11,18 @@ depends_on:
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: woodpeckerci/plugin-git:v1.6.0
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# build and publish docker image for arm64
|
# build and publish docker image for arm64
|
||||||
build-arm64:
|
build-arm64:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
pull: true
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
settings:
|
settings:
|
||||||
repo: olofvndrhr/manga-dlp
|
repo: olofvndrhr/manga-dlp
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
|
|
|
@ -12,20 +12,18 @@ depends_on:
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: woodpeckerci/plugin-git:v1.6.0
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# publish docker manifest for automatic multi arch pulls
|
# publish docker manifest for automatic multi arch pulls
|
||||||
publish-manifest:
|
publish-manifest:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: plugins/manifest
|
image: plugins/manifest
|
||||||
pull: true
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
settings:
|
settings:
|
||||||
spec: docker/manifest.tmpl
|
spec: docker/manifest.tmpl
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
|
|
85
.woodpecker/publish_pre_release.yml
Normal file
85
.woodpecker/publish_pre_release.yml
Normal file
|
@ -0,0 +1,85 @@
|
||||||
|
###################
|
||||||
|
# publish pre-release #
|
||||||
|
###################
|
||||||
|
# branch: dev
|
||||||
|
# event: tag
|
||||||
|
|
||||||
|
platform: linux/amd64
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- tests
|
||||||
|
|
||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
tag: "*-dev"
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
|
||||||
|
# build wheel and dist
|
||||||
|
build-pypi:
|
||||||
|
image: cr.44net.ch/ci-plugins/tests
|
||||||
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
tag: "*-dev"
|
||||||
|
commands:
|
||||||
|
- python3 -m hatch build --clean
|
||||||
|
|
||||||
|
# create pre-release-notes
|
||||||
|
create-pre-release-notes:
|
||||||
|
image: cr.44net.ch/baseimages/debian-base
|
||||||
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
tag: "*-dev"
|
||||||
|
commands:
|
||||||
|
- bash get_release_notes.sh ${CI_COMMIT_TAG%%-dev}
|
||||||
|
|
||||||
|
# publish pre-release on gitea (git.44net.ch/olofvndrhr/manga-dlp)
|
||||||
|
publish-pre-release-gitea:
|
||||||
|
image: plugins/gitea-release
|
||||||
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
tag: "*-dev"
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea-olofvndrhr-token
|
||||||
|
base_url: https://git.44net.ch
|
||||||
|
files: dist/*
|
||||||
|
title: ${CI_COMMIT_TAG}
|
||||||
|
note: RELEASENOTES.md
|
||||||
|
prerelease: true
|
||||||
|
|
||||||
|
# publish pre-release on github (github.com/olofvndrhr/manga-dlp)
|
||||||
|
publish-pre-release-github:
|
||||||
|
image: plugins/github-release
|
||||||
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
tag: "*-dev"
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: github-olofvndrhr-token
|
||||||
|
files: dist/*
|
||||||
|
title: ${CI_COMMIT_TAG}
|
||||||
|
note: RELEASENOTES.md
|
||||||
|
prerelease: true
|
||||||
|
|
||||||
|
# # pre-release pypi
|
||||||
|
# pre-release-pypi:
|
||||||
|
# image: cr.44net.ch/ci-plugins/tests
|
||||||
|
# pull: true
|
||||||
|
# when:
|
||||||
|
# event: tag
|
||||||
|
# tag: "*-dev"
|
||||||
|
# secrets:
|
||||||
|
# - source: pypi_username
|
||||||
|
# target: HATCH_INDEX_USER
|
||||||
|
# - source: pypi_token
|
||||||
|
# target: HATCH_INDEX_AUTH
|
||||||
|
# commands:
|
||||||
|
# - python3 -m hatch publish --no-prompt --yes
|
|
@ -11,40 +11,36 @@ depends_on:
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: woodpeckerci/plugin-git:v1.6.0
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# build wheel and dist
|
# build wheel and dist
|
||||||
build-pypi:
|
build-pypi:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: cr.44net.ch/ci-plugins/tests
|
image: cr.44net.ch/ci-plugins/tests
|
||||||
pull: true
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
commands:
|
commands:
|
||||||
- python3 -m hatch build --clean
|
- python3 -m hatch build --clean
|
||||||
|
|
||||||
# create release-notes
|
# create release-notes
|
||||||
create-release-notes:
|
create-release-notes:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: cr.44net.ch/baseimages/debian-base
|
image: cr.44net.ch/baseimages/debian-base
|
||||||
pull: true
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
commands:
|
commands:
|
||||||
- bash get_release_notes.sh ${CI_COMMIT_TAG}
|
- bash get_release_notes.sh ${CI_COMMIT_TAG}
|
||||||
|
|
||||||
# publish release on gitea (git.44net.ch/olofvndrhr/manga-dlp)
|
# publish release on gitea (git.44net.ch/olofvndrhr/manga-dlp)
|
||||||
publish-release-gitea:
|
publish-release-gitea:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
pull: true
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea-olofvndrhr-token
|
from_secret: gitea-olofvndrhr-token
|
||||||
|
@ -55,11 +51,10 @@ pipeline:
|
||||||
|
|
||||||
# publish release on github (github.com/olofvndrhr/manga-dlp)
|
# publish release on github (github.com/olofvndrhr/manga-dlp)
|
||||||
publish-release-github:
|
publish-release-github:
|
||||||
when:
|
image: plugins/github-release
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: woodpeckerci/plugin-github-release
|
|
||||||
pull: true
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: github-olofvndrhr-token
|
from_secret: github-olofvndrhr-token
|
||||||
|
@ -69,11 +64,10 @@ pipeline:
|
||||||
|
|
||||||
# release pypi
|
# release pypi
|
||||||
release-pypi:
|
release-pypi:
|
||||||
when:
|
|
||||||
#branch: master
|
|
||||||
event: tag
|
|
||||||
image: cr.44net.ch/ci-plugins/tests
|
image: cr.44net.ch/ci-plugins/tests
|
||||||
pull: true
|
pull: true
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
secrets:
|
secrets:
|
||||||
- source: pypi_username
|
- source: pypi_username
|
||||||
target: HATCH_INDEX_USER
|
target: HATCH_INDEX_USER
|
||||||
|
|
|
@ -11,20 +11,20 @@ depends_on:
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: woodpeckerci/plugin-git:v1.6.0
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# build docker image for amd64 - x86
|
# build docker image for amd64 - x86
|
||||||
test-build-amd64:
|
test-build-amd64:
|
||||||
|
image: plugins/docker
|
||||||
|
pull: true
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: plugins/docker
|
|
||||||
pull: true
|
|
||||||
settings:
|
settings:
|
||||||
dry_run: true
|
dry_run: true
|
||||||
repo: olofvndrhr/manga-dlp
|
repo: olofvndrhr/manga-dlp
|
||||||
|
|
|
@ -11,20 +11,20 @@ depends_on:
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: woodpeckerci/plugin-git:v1.6.0
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# build docker image for arm64
|
# build docker image for arm64
|
||||||
test-build-arm64:
|
test-build-arm64:
|
||||||
|
image: plugins/docker
|
||||||
|
pull: true
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: plugins/docker
|
|
||||||
pull: true
|
|
||||||
settings:
|
settings:
|
||||||
dry_run: true
|
dry_run: true
|
||||||
repo: olofvndrhr/manga-dlp
|
repo: olofvndrhr/manga-dlp
|
||||||
|
|
|
@ -11,30 +11,30 @@ depends_on:
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: woodpeckerci/plugin-git:v1.6.0
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# build wheel and dist
|
# build wheel and dist
|
||||||
test-build-pypi:
|
test-build-pypi:
|
||||||
|
image: cr.44net.ch/ci-plugins/tests
|
||||||
|
pull: true
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: cr.44net.ch/ci-plugins/tests
|
|
||||||
pull: true
|
|
||||||
commands:
|
commands:
|
||||||
- python3 -m hatch build --clean
|
- python3 -m hatch build --clean
|
||||||
|
|
||||||
# create release-notes
|
# create release-notes
|
||||||
test-create-release-notes:
|
test-create-release-notes:
|
||||||
|
image: cr.44net.ch/baseimages/debian-base
|
||||||
|
pull: true
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: cr.44net.ch/baseimages/debian-base
|
|
||||||
pull: true
|
|
||||||
commands:
|
commands:
|
||||||
- bash get_release_notes.sh latest
|
- bash get_release_notes.sh latest
|
||||||
- cat RELEASENOTES.md
|
- cat RELEASENOTES.md
|
||||||
|
|
|
@ -11,19 +11,19 @@ depends_on:
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: woodpeckerci/plugin-git:v1.6.0
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# test code with different python versions - amd64
|
# test code with different python versions - amd64
|
||||||
test-tox-amd64:
|
test-tox-amd64:
|
||||||
|
image: cr.44net.ch/ci-plugins/multipy
|
||||||
|
pull: true
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: cr.44net.ch/ci-plugins/multipy
|
|
||||||
pull: true
|
|
||||||
commands:
|
commands:
|
||||||
- python3 -m tox
|
- python3 -m tox
|
||||||
|
|
|
@ -11,20 +11,20 @@ depends_on:
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
|
image: woodpeckerci/plugin-git:v1.6.0
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: woodpeckerci/plugin-git:v1.6.0
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# test code with different python versions - arm64
|
# test code with different python versions - arm64
|
||||||
test-tox-arm64:
|
test-tox-arm64:
|
||||||
|
image: cr.44net.ch/ci-plugins/multipy
|
||||||
|
pull: true
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
image: cr.44net.ch/ci-plugins/multipy
|
|
||||||
pull: true
|
|
||||||
commands:
|
commands:
|
||||||
- grep -v img2pdf contrib/requirements_dev.txt > contrib/requirements_dev_arm64.txt
|
- grep -v img2pdf contrib/requirements_dev.txt > contrib/requirements_dev_arm64.txt
|
||||||
- rm -f contrib/requirements_dev.txt
|
- rm -f contrib/requirements_dev.txt
|
||||||
|
|
Loading…
Reference in a new issue