Compare commits
13 Commits
WEBDEV-0.1
...
5ad3ebe40a
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ad3ebe40a | |||
| 9d59359074 | |||
| c23ffc3fd8 | |||
| fe57aca2f7 | |||
| e61e8fb898 | |||
| afe04ec68b | |||
| 445b33f852 | |||
| 433a8d78a4 | |||
| fd2246391c | |||
| 95ddb3236c | |||
| f1144d2cb9 | |||
| 0ca2a0e38c | |||
| 9b590bb4fa |
20
.woodpecker.yaml
Normal file
20
.woodpecker.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
steps:
|
||||
- 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 (Non-Prod Branch)
|
||||
when:
|
||||
- event: tag
|
||||
branch:
|
||||
exclude: [master]
|
||||
secrets: [gitea_yaba_registry_username, gitea_yaba_registry_password]
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: yaba/api
|
||||
dockerfile: ./API/YABA.API/Dockerfile
|
||||
tags: ${CI_COMMIT_TAG}
|
||||
username: ${gitea_yaba_registry_username}
|
||||
password: ${gitea_yaba_registry_password}
|
||||
registry: https://gitea.iwanaga.moe/cjtibule/YABA/packages
|
||||
@ -1,12 +0,0 @@
|
||||
when:
|
||||
- event: [push, pull_request, tag]
|
||||
ref: [refs/tags/APIDEV-*, refs/tags/API-*, refs/heads/api/*]
|
||||
steps:
|
||||
- name: (YABA.API) Build and run tests
|
||||
when:
|
||||
- event: [push, pull_request, tag]
|
||||
branch: [api/*]
|
||||
image: mcr.microsoft.com/dotnet/sdk:6.0
|
||||
commands:
|
||||
- dotnet build ./API
|
||||
- dotnet test ./API
|
||||
@ -1,34 +0,0 @@
|
||||
when:
|
||||
- event: tag
|
||||
ref: [refs/tags/APIDEV-*, refs/tags/API-*]
|
||||
steps:
|
||||
- name: (YABA.API) Determining Docker image version number (dev)
|
||||
when:
|
||||
- ref: refs/tags/APIDEV-*
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- rm -f tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^APIDEV-//" >> tags.txt
|
||||
- echo "latest-dev" >> tags.txt
|
||||
- name: (YABA.API) Determining Docker image version number (prod)
|
||||
image: alpine:latest
|
||||
when:
|
||||
- ref: refs/tags/API-*
|
||||
commands:
|
||||
- rm -f tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^API-//" >> tags.txt
|
||||
- echo "latest" >> tags.txt
|
||||
- name: (YABA.API) Package and Upload Docker Image
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: gitea.iwanaga.moe/cjtibule/yaba/api
|
||||
context: ./API
|
||||
dockerfile: ./API/YABA.API/Dockerfile
|
||||
tags_file: tags.txt
|
||||
username:
|
||||
from_secret: gitea_yaba_registry_username
|
||||
password:
|
||||
from_secret: gitea_yaba_registry_password
|
||||
registry: gitea.iwanaga.moe
|
||||
depends_on:
|
||||
- api_build
|
||||
@ -1,34 +0,0 @@
|
||||
when:
|
||||
- event: tag
|
||||
ref: [refs/tags/WEBDEV-*, refs/tags/WEB-*]
|
||||
steps:
|
||||
- name: (YABA.Web) Determining Docker image version number (dev)
|
||||
when:
|
||||
- ref: refs/tags/WEBDEV-*
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- rm -f tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^WEBDEV-//" >> tags.txt
|
||||
- echo "latest-dev" >> tags.txt
|
||||
- name: (YABA.Web) Determining Docker image version number (prod)
|
||||
when:
|
||||
- ref: refs/tags/WEB-*
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- rm -f tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^WEB-//" >> tags.txt
|
||||
- echo "latest" >> tags.txt
|
||||
- name: (YABA.Web) Package and Upload Docker Image
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: gitea.iwanaga.moe/cjtibule/yaba/web
|
||||
context: ./Web
|
||||
dockerfile: ./Web/Dockerfile
|
||||
tags_file: tags.txt
|
||||
username:
|
||||
from_secret: gitea_yaba_registry_username
|
||||
password:
|
||||
from_secret: gitea_yaba_registry_password
|
||||
registry: gitea.iwanaga.moe
|
||||
build_args:
|
||||
from_secret: DEV1_BUILDARGS
|
||||
@ -1,5 +1,6 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
location / {
|
||||
|
||||
Reference in New Issue
Block a user