Compare commits
8 Commits
456b8ef75b
...
15f5e43e34
| Author | SHA1 | Date | |
|---|---|---|---|
| 15f5e43e34 | |||
| 6634891de6 | |||
| 98fc970653 | |||
| f71211c0b9 | |||
| 19fab91db9 | |||
| 8b9a837062 | |||
| be1344e9e5 | |||
| fc51e2eda9 |
@ -1,43 +0,0 @@
|
||||
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]
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: gitea.iwanaga.moe/cjtibule/yaba/api
|
||||
context: ./API
|
||||
dockerfile: ./API/YABA.API/Dockerfile
|
||||
tags:
|
||||
- latest-dev
|
||||
- ${CI_COMMIT_TAG}
|
||||
username:
|
||||
from_secret: gitea_yaba_registry_username
|
||||
password:
|
||||
from_secret: gitea_yaba_registry_password
|
||||
registry: gitea.iwanaga.moe
|
||||
- name: (YABA.Web) Deploy Docker Image (Non-Prod Branch)
|
||||
when:
|
||||
- event: tag
|
||||
branch:
|
||||
exclude: [master]
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: gitea.iwanaga.moe/cjtibule/yaba/web
|
||||
context: ./Web
|
||||
dockerfile: ./Web/Dockerfile
|
||||
tags:
|
||||
- latest-dev
|
||||
- ${CI_COMMIT_TAG}
|
||||
username:
|
||||
from_secret: gitea_yaba_registry_username
|
||||
password:
|
||||
from_secret: gitea_yaba_registry_password
|
||||
registry: gitea.iwanaga.moe
|
||||
|
||||
12
.woodpecker/.api_build.yaml
Normal file
12
.woodpecker/.api_build.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
34
.woodpecker/.api_uploadimage.yaml
Normal file
34
.woodpecker/.api_uploadimage.yaml
Normal file
@ -0,0 +1,34 @@
|
||||
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"
|
||||
- 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"
|
||||
- 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
|
||||
34
.woodpecker/.web_uploadimage.yaml
Normal file
34
.woodpecker/.web_uploadimage.yaml
Normal file
@ -0,0 +1,34 @@
|
||||
when:
|
||||
- event: tag
|
||||
ref: [refs/tags/WEBDEV-*, refs/tags/WEB-*]
|
||||
steps:
|
||||
- name: (YABA.Web) Determining Docker image version number (dev)
|
||||
when:
|
||||
- refs: refs/tags/WEBDEV-*
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- rm -f tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^WEBDEV-//" >> tags.txt
|
||||
- echo "latest-dev"
|
||||
- name: (YABA.Web) Determining Docker image version number (prod)
|
||||
when:
|
||||
- refs: refs/tags/WEB-*
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- rm -f tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^WEB-//" >> tags.txt
|
||||
- echo "latest"
|
||||
- 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_env:
|
||||
from_secret: DEV1_BUILDARGS
|
||||
Reference in New Issue
Block a user