forked from iMelki/Json2MySQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodefresh.yml
More file actions
61 lines (53 loc) · 1.28 KB
/
codefresh.yml
File metadata and controls
61 lines (53 loc) · 1.28 KB
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
60
61
version: '1.0'
stages:
- test
steps:
MyServerDockerImage:
title: Building Server Docker Image
type: build
image_name: ilancodefresh/json2mysql
working_directory: ./
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
dockerfile: Dockerfile
# MyClientDockerImage:
# title: Building Client Docker Image
# type: build
# image_name: ilancodefresh/my-app-ui
# working_directory: ./
# tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
# dockerfile: Dockerfile
MyUnitTests:
title: Running Unit tests
stage: test
image: ${{MyServerDockerImage}}
commands:
- npm run test
PushToDH:
type: push
title: Push Image to Docker Hub
description: Push Docker Image to Docker Hub Registry
candidate: ${{MyServerDockerImage}}
#tag: latest
#image_name: codefresh/app
registry: dockerhub
fail_fast: false
when:
branch:
only:
- master
retry:
maxAttempts: 2
delay: 5
Run:
type: launch-composition
title: Run app
description: Free text description
working_directory: ./
entry_point: server
environment_name: Json2MySQL
composition: cf-docker-compose.yml
# Run:
# title: Running Server
# image: ${{MyServerDockerImage}}
# commands:
# - docker-compose up