Update .woodpecker.yml
This commit is contained in:
@@ -19,6 +19,23 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- dotnet restore
|
- 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:
|
test:
|
||||||
image: mcr.microsoft.com/dotnet/sdk:latest
|
image: mcr.microsoft.com/dotnet/sdk:latest
|
||||||
commands:
|
commands:
|
||||||
|
|||||||
Reference in New Issue
Block a user