Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

Commit dcc1da6

Browse files
Update codefresh.yml
1 parent 50b1b13 commit dcc1da6

File tree

1 file changed

+44
-7
lines changed

1 file changed

+44
-7
lines changed

codefresh.yml

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,48 @@
11
version: '1.0'
22
steps:
33

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}}
1110

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

0 commit comments

Comments
 (0)