29 lines
No EOL
1.2 KiB
YAML
29 lines
No EOL
1.2 KiB
YAML
when:
|
|
- event: tag
|
|
ref: refs/tags/v*
|
|
|
|
steps:
|
|
build_package:
|
|
image: git.verdigado.com/verdigado-public/krankerl_docker:latest
|
|
pull: true
|
|
commands:
|
|
- krankerl package
|
|
git_release:
|
|
image: woodpeckerci/plugin-gitea-release
|
|
settings:
|
|
base_url: https://git.verdigado.com
|
|
title: ${CI_COMMIT_TAG##refs/tags/}
|
|
files:
|
|
- build/artifacts/groupfolder_filesystem_snapshots.tar.gz
|
|
api_key:
|
|
from_secret: GIT_ACCESS_TOKEN
|
|
target: main
|
|
file-exists: fail
|
|
release:
|
|
image: git.verdigado.com/verdigado-public/krankerl_docker:latest
|
|
commands:
|
|
- krankerl login --appstore "$${NEXTCLOUD_APPSTORE_TOKEN}"
|
|
- mkdir -p ~/.nextcloud/certificates/
|
|
- echo "$${NEXTCLOUD_APPSTORE_SIGNING_KEY}" | base64 -d > ~/.nextcloud/certificates/groupfolder_filesystem_snapshots.key
|
|
- krankerl publish https://git.verdigado.com/verdigado-public/nextcloud_groupfolder_filesystem_snapshots/releases/download/${CI_COMMIT_TAG##refs/tags/}/groupfolder_filesystem_snapshots.tar.gz
|
|
secrets: [ NEXTCLOUD_APPSTORE_TOKEN, NEXTCLOUD_APPSTORE_SIGNING_KEY ] |