Add sample pipeline for building API project
This commit is contained in:
22
.woodpecker.yaml
Normal file
22
.woodpecker.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
steps:
|
||||||
|
- name: BuildAPI
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
||||||
|
commands:
|
||||||
|
- dotnet build ./API
|
||||||
|
- dotnet test ./
|
||||||
|
- name: DeployAPIDockerImage
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
secrets: [auth0_iwanagadev_clientid, auth0_iwanagadev_clientsecret, auth0_iwanagadev_domain, auth0_iwanagadev_identifier, yabadev_roconnectionstring, yabadev_rwconnectionstring, gitea_yaba_registry_username, gitea_yaba_registry_password]
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
repo: yaba/api
|
||||||
|
dockerfile: ./API/YABA.API/Dockerfile
|
||||||
|
tags: [latest, ${CI_COMMIT_TAG}]
|
||||||
|
username: ${gitea_yaba_registry_username}
|
||||||
|
password: ${gitea_yaba_registry_password}
|
||||||
|
registry: https://gitea.iwanaga.moe/cjtibule/YABA/packages
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user