From fd2246391c73c650632872b5ef59551c127a5133 Mon Sep 17 00:00:00 2001 From: Carl Tibule Date: Thu, 21 Mar 2024 23:12:23 -0500 Subject: [PATCH] Add sample pipeline for building API project --- .woodpecker.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..ae946f3 --- /dev/null +++ b/.woodpecker.yaml @@ -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 + + + + \ No newline at end of file