add: build leave

This commit is contained in:
Warunee Tamkoo 2025-12-23 20:21:25 +07:00
parent b03be82f7c
commit 804a4cf85f

31
.onedev/build-leave.yml Normal file
View file

@ -0,0 +1,31 @@
version: 37
jobs:
- name: CI for Leave PROD
steps:
- !CheckoutStep
name: checkout code
cloneCredential: !DefaultCredential {}
withLfs: false
withSubmodules: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !SetBuildVersionStep
name: set build version
buildVersion: "@tag@"
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !BuildImageStep
name: build docker image
dockerfile: ./BMA.EHR.Leave/Dockerfile
output: !RegistryOutput
tags: "hrms-git.bangkok.go.th/bma-hrms/hrms-api-leave:@build_version@ hrms-git.bangkok.go.th/bma-hrms/hrms-api-leave:latest"
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !TagCreateTrigger
tags: leave-prod-*
branches: main
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 14400