-
Notifications
You must be signed in to change notification settings - Fork 0
/
.onedev-buildspec.yml
59 lines (57 loc) · 1.64 KB
/
.onedev-buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: 31
jobs:
- name: Build
steps:
- !CheckoutStep
name: checkout
cloneCredential: !DefaultCredential {}
withLfs: false
withSubmodules: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: lint
runInContainer: true
image: node:21-alpine
interpreter: !DefaultInterpreter
commands: |
apk add --no-cache libc6-compat
apk update
yarn set version canary
yarn config set nodeLinker node-modules
yarn install
yarn run lint
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !BuildImageStep
name: '[build]: dispatch'
dockerfile: ./apps/dispatch/Dockerfile
tags: '@server@/rose/datamine/dispatch:devel'
publish: true
builtInRegistryAccessTokenSecret: DOCKER_REGISTRY_TOKEN
removeDanglingImages: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !BuildImageStep
name: '[build]: ingest'
dockerfile: ./apps/ingest/Dockerfile
tags: '@server@/rose/datamine/ingest:devel'
publish: true
builtInRegistryAccessTokenSecret: DOCKER_REGISTRY_TOKEN
removeDanglingImages: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !BuildImageStep
name: '[build]: bot'
dockerfile: ./apps/bot/Dockerfile
tags: '@server@/rose/datamine/bot:devel'
publish: true
builtInRegistryAccessTokenSecret: DOCKER_REGISTRY_TOKEN
removeDanglingImages: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger
branches: devel
paths: apps/** packages/**
projects: rose/datamine
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 3600