Added deploy step for API Dockerfile
This commit is contained in:
@ -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
|
||||
Reference in New Issue
Block a user