This repository was archived by the owner on Apr 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +44
-7
lines changed Expand file tree Collapse file tree 1 file changed +44
-7
lines changed Original file line number Diff line number Diff line change 1
1
version : ' 1.0'
2
2
steps :
3
3
4
- launch_latest_full_composition :
5
- title : " Launch full composition with latest images (develop)"
6
- type : launch-composition
7
- composition : ' docker-compose.yml'
8
- environment_name : " demo"
9
- composition_variables :
10
- - VALUE:value
4
+ build_step :
5
+ title : Build
6
+ type : build
7
+ dockerfile : Dockerfile
8
+ image_name : containers101/demochat
9
+ tag : ${{CF_BRANCH}}
11
10
11
+ unit_tests :
12
+ title : Unit Tests
13
+ image : ${{build_step}}
14
+ fail_fast : false
15
+ # working-directory : ${{initial-clone}}
16
+ commands :
17
+ # - npm install
18
+ # - npm install -g gulp
19
+ - npm test
20
+
21
+ push_to_registry :
22
+ title : Push To Registry
23
+ type : push
24
+ candidate : ${{build_step}}
25
+ tag : ${{CF_BRANCH}}
26
+
27
+ # demo-chat-integration:
28
+ # type: composition
29
+ # composition: letschat
30
+ # composition-candidates:
31
+ # main:
32
+ # image: nhoag/curl
33
+ # command: bash -c "sleep 20 && curl http://demochat:5000/" | echo 'works'
34
+
35
+ deploy_to_ecs :
36
+ title : Deploy Container to ECS
37
+ image : codefresh/cf-deploy-ecs
38
+ commands :
39
+ - cfecs-update --image-name containers101/demochat --image-tag ${{CF_BRANCH}} eu-west-1 demochat-production demochat-service
40
+ environment :
41
+ - AWS_ACCESS_KEY_ID=AKIAISRGV2FLUTSZJPVQ
42
+ # ${{AWS_ACCESS_KEY_ID}}
43
+ - AWS_SECRET_ACCESS_KEY=bELOveH7wg5B1+HqhSAYMk2kNqoP6syCEI1lKnNN
44
+ # ${{AWS_SECRET_ACCESS_KEY}}
45
+ when :
46
+ branch :
47
+ only :
48
+ - master
You can’t perform that action at this time.
0 commit comments