Update .woodpecker.yml

This commit is contained in:
2026-01-02 21:56:52 +01:00
parent b87b574b7d
commit 21336e8dc6

View File

@@ -19,6 +19,23 @@ steps:
commands:
- dotnet restore
restore:
image: mcr.microsoft.com/dotnet/sdk:latest
environment:
BAGET_URL:
from_secret: http://srv51.mikr.us:20120/v3/index.json # np. https://twoj-serwer.pl/baget/v3/index.json
BAGET_API_KEY: # opcjonalnie, jeśli BaGet wymaga klucza do pobierania
from_secret: hfsa853nc9vfap53285ybndfahi58325hie242dsafa954
commands:
- |
# Dodaj BaGet jako dodatkowe źródło NuGet
dotnet nuget add source "$BAGET_URL" --name internal-baget
# Jeśli BaGet wymaga autentykacji do pobierania (rzadkie, ale możliwe)
# dotnet nuget update source internal-baget --username anything --password "$BAGET_API_KEY" --store-password-in-clear-text
dotnet restore
test:
image: mcr.microsoft.com/dotnet/sdk:latest
commands: