diff --git a/.drone.yml b/.drone.yml index 6c9b04c..5cc5a15 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,8 @@ clone: steps: - name: clone image: alpine/git + settings: + tags: true commands: - pwd - git clone https://gitea.musk.fun/nocr/local-env @@ -32,7 +34,7 @@ steps: - name: nocr telegram listener nuget package make & push image: mcr.microsoft.com/dotnet/sdk:8.0 environment: - VERSION: 0.1.0 + VERSION: ${DRONE_TAG} NUGETAPIKEY: from_secret: nuget_api_key commands: @@ -40,3 +42,7 @@ steps: - dotnet pack ./local-env/telegram-listener/src/Nocr.TelegramListener.Async.Api.Contracts/Nocr.TelegramListener.Async.Api.Contracts.csproj - dotnet nuget push ./local-env/telegram-listener/src/Nocr.TelegramListener.Async.Api.Contracts/bin/*/*.nupkg --api-key $NUGETAPIKEY --source https://api.nuget.org/v3/index.json +trigger: + event: + - tag +