-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
codefresh.yml
39 lines (36 loc) · 1.1 KB
/
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
38
39
version: '1.0'
steps:
BuildingDockerImage:
title: Building Docker Image
type: build
image_name: srzzumix/ciskip
working_directory: ./
dockerfile:
content: |-
FROM ubuntu:latest
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
when:
condition: &skip-condition
all:
noSkipCiInCommitMessageCiSkip: |
includes(lower("${{CF_COMMIT_MESSAGE}}"), "[ci skip]") == false
# noSkipCiInCommitMessageSkipCI: |
# includes(lower("${{CF_COMMIT_MESSAGE}}"), "[skip ci]") == false
noSkipCiInCommitMessage2: |
includes(lower("${{CF_COMMIT_MESSAGE}}"), "[skip codefresh]") == false
RunningUnitTests:
title: Running Unit Tests
image: '${{BuildingDockerImage}}'
working_directory: IMAGE_WORK_DIR
entry_point:
- /bin/sh
- /codefresh/volume/cf-generated/unit_test_script
create_file:
path: /codefresh/volume/cf-generated
name: unit_test_script
content: >-
cat /proc/cpuinfo
when:
condition: *skip-condition