forked from codefresh-io/demochat
-
Notifications
You must be signed in to change notification settings - Fork 2
/
codefresh.yml
48 lines (43 loc) · 1.22 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
40
41
42
43
44
45
46
47
48
version: '1.0'
steps:
build_step:
title: Build
type: build
dockerfile: Dockerfile
image_name: containers101/demochat
tag: ${{CF_BRANCH}}
unit_tests:
title: Unit Tests
image: ${{build_step}}
fail_fast: false
#working-directory : ${{initial-clone}}
commands:
#- npm install
#- npm install -g gulp
- npm test
push_to_registry:
title: Push To Registry
type: push
candidate: ${{build_step}}
tag: ${{CF_BRANCH}}
#demo-chat-integration:
# type: composition
# composition: letschat
# composition-candidates:
# main:
# image: nhoag/curl
# command: bash -c "sleep 20 && curl http://demochat:5000/" | echo 'works'
deploy_to_ecs:
title: Deploy Container to ECS
image: codefresh/cf-deploy-ecs
commands:
- cfecs-update --image-name containers101/demochat --image-tag ${{CF_BRANCH}} eu-west-1 demochat-production demochat-service
environment:
- AWS_ACCESS_KEY_ID=AKIAISRGV2FLUTSZJPVQ
#${{AWS_ACCESS_KEY_ID}}
- AWS_SECRET_ACCESS_KEY=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
#${{AWS_SECRET_ACCESS_KEY}}
when:
branch:
only:
- master