Files
webapitest/.drone.yml

24 lines
610 B
YAML

---
kind: pipeline
type: docker
name: package
steps:
- name: dotnet publish
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- dotnet publish --configuration Release
- ls ./SampleApi/bin/Release/net8.0/publish/
- name: docker build and push
image: plugins/docker
settings:
repo: gitea.khongisa.co.za/khwezi/sampleapi
registry: registry.khongisa.co.za:3005
insecure: true
username:
from_secret: gitea-username
password:
from_secret: gitea-token
dockerfile: Dockerfile
context: ./SampleApi/bin/Release/net8.0/publish/