Modified structure for Woodpecker config
This commit is contained in:
33
.woodpecker/.api_uploadimage.yaml
Normal file
33
.woodpecker/.api_uploadimage.yaml
Normal file
@ -0,0 +1,33 @@
|
||||
when:
|
||||
- event: tag
|
||||
refs: [ref/tags/APIDEV-*, ref/tags/API-*]
|
||||
steps:
|
||||
- name: (YABA.API) Determining Docker image version number (dev)
|
||||
when:
|
||||
- ref: refs/tags/APIDEV-*
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- rm tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^APIDEV-//" >> tags.txt
|
||||
- echo "latest-dev"
|
||||
- name: (YABA.API) Determining Docker image version number (prod)
|
||||
when:
|
||||
- ref: refs/tags/API-*
|
||||
commands:
|
||||
- rm tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^API-//" >> tags.txt
|
||||
- echo "latest"
|
||||
- name: (YABA.API) Build 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
|
||||
Reference in New Issue
Block a user