24 lines
600 B
YAML
24 lines
600 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: 192.168.1.173:3005
|
|
insecure: true
|
|
username:
|
|
from_secret: gitea-username
|
|
password:
|
|
from_secret: gitea-token
|
|
dockerfile: Dockerfile
|
|
context: ./SampleApi/bin/Release/net8.0/publish/ |