You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

3 years ago
kind: pipeline
type: docker
name: RadarrSharp
environment:
BUILD_NUM_SINCE_LAST_MINOR_VERSION: 15
steps:
- name: init
image: busybox
commands:
- echo 'Starting build pipeline for RadarrSharp'
- echo Drone build number is ${DRONE_BUILD_NUMBER}
- echo Revision is $((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION))
- echo Registry URL is ${REGISTRY_URL}
- echo Registry URL is ${gitea_registry_url}
- echo Registry URL is $REGISTRY_URL
- echo Registry URL is $gitea_registry_url}
- echo 'Registry URL is ${REGISTRY_URL}'
- echo 'Registry URL is ${gitea_registry_url}'
- echo 'Registry URL is $REGISTRY_URL'
- echo 'Registry URL is $gitea_registry_url}'
environment:
REGISTRY_URL:
from_secret: gitea_registry_url
3 years ago
- name: nuget-publish
image: mcr.microsoft.com/dotnet/sdk:5.0
environment:
NUGET_API_KEY:
from_secret: Nuget_Api_key
commands:
- dotnet build
- dotnet pack -p:Version=1.0.$((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION)) -o .
- dotnet nuget push *.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
- name: finish
image: busybox
commands:
- echo 'Finished deployment for RadarrSharp'