34 lines
772 B
YAML
34 lines
772 B
YAML
version: 43
|
|
jobs:
|
|
- name: build
|
|
steps:
|
|
- type: CheckoutStep
|
|
name: Checkout code
|
|
cloneCredential:
|
|
type: DefaultCredential
|
|
withLfs: true
|
|
withSubmodules: true
|
|
cloneDepth: 1
|
|
condition: SUCCESSFUL
|
|
optional: false
|
|
- type: BuildImageStep
|
|
name: build image
|
|
output:
|
|
type: RegistryOutput
|
|
tags: onedev.site.tesses.net/tytd2025/tytdcompanion/tytdcompanion:latest
|
|
registryLogins:
|
|
- registryUrl: '@server_url@'
|
|
userName: '@job_token@'
|
|
passwordSecret: dockersecret
|
|
condition: SUCCESSFUL
|
|
optional: false
|
|
triggers:
|
|
- type: BranchUpdateTrigger
|
|
branches: master
|
|
userMatch: anyone
|
|
projects: tytd2025/tytdcompanion
|
|
retryCondition: never
|
|
maxRetries: 3
|
|
retryDelay: 30
|
|
timeout: 14400
|