Added deploy step for API Dockerfile

This commit is contained in:
2024-03-21 23:19:34 -05:00
parent 445b33f852
commit afe04ec68b

View File

@ -1,6 +1,18 @@
steps:
- name: BuildAPI
- name: [YABA.API] Build and run tests
image: mcr.microsoft.com/dotnet/sdk:6.0
commands:
- dotnet build ./API
- dotnet test ./API
- name: [YABA.API] Deploy Docker Image
when:
- event: tag
secrets: [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