Files
webapitest/.drone.yml
2026-03-08 11:04:59 +02:00

36 lines
795 B
YAML

---
kind: pipeline
type: docker
name: package
clone:
disable: true
steps:
- name: manual-clone
image: alpine/git
commands:
- git clone https://gitea.khongisa.co.za/MngomaLab/webapitest.git .
- git checkout ${DRONE_COMMIT}
- 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:
debug: true
repo: khwezi/mngomalab
registry: index.docker.io
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile
context: .
tags:
- latest
- ${DRONE_BUILD_NUMBER}