Add buildspec
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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
|
||||
Reference in New Issue
Block a user