30 lines
657 B
YAML
30 lines
657 B
YAML
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: package
|
|
|
|
depends_on:
|
|
- build
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
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: gitea.khongisa.co.za
|
|
insecure: false
|
|
username:
|
|
from_secret: gitea-username
|
|
password:
|
|
from_secret: gitea-password
|
|
dockerfile: Dockerfile
|
|
context: ./SampleApi/bin/Release/net8.0/publish/ |