add: build leave
This commit is contained in:
parent
b03be82f7c
commit
804a4cf85f
1 changed files with 31 additions and 0 deletions
31
.onedev/build-leave.yml
Normal file
31
.onedev/build-leave.yml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue