-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodefresh.yml
37 lines (33 loc) · 954 Bytes
/
codefresh.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
# https://codefresh.io/docs/docs/codefresh-yaml/what-is-the-codefresh-yaml/#using-yaml-anchors-to-avoid-repetition
aliases:
- commands: &default-cmd
- echo "${HELLO} ${WORLD}"
- &skip_condition
condition:
all:
noSkipCiInCommitMessage: |
includes(lower("${{CF_COMMIT_MESSAGE}}"), "[ci skip]") == false && includes(lower("${{CF_COMMIT_MESSAGE}}"), "[skip ci]") == false
noSkipCiInCommitMessage2: |
includes(lower("${{CF_COMMIT_MESSAGE}}"), "[skip codefresh]") == false
- &env-hello
HELLO: hello
version: '1.0'
steps:
Hello: &hello
title: Hello world
image: gcc
commands: *default-cmd
environment: &hello_envs
- HELLO=hello
when: *skip_condition
Hello2:
title: Hello world 2
image: gcc
commands: *default-cmd
environment: *hello_envs
when: *skip_condition
Hello3:
<<: *hello
title: Hello world 3
environment:
- WORLD=world