Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #29

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Test #29

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A self-hosted chat app for small teams or big Gal by [Security Compass][seccom].
[![Build Status](https://travis-ci.org/sdelements/lets-chat.svg?branch=master)](https://travis-ci.org/sdelements/lets-chat)
[![Dependency Status](https://david-dm.org/sdelements/lets-chat.svg)](https://david-dm.org/sdelements/lets-chat)
[![devDependency Status](https://david-dm.org/sdelements/lets-chat/dev-status.svg)](https://david-dm.org/sdelements/lets-chat#info=devDependencies)

a

## Features and Stuff

Expand Down
51 changes: 8 additions & 43 deletions codefresh.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,13 @@
version: '1.0'
steps:

launch_latest_full_composition:
title: "Launch full composition with latest images (develop)"
type: launch-composition
composition: docker-compose.yml
environment_name: "demo"
composition_variables:
- VALUE=myvalue

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
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
version: '2'
services:
web:
build: .
image: 'codefreshio/demochat:composetest'
ports:
- 5000:5000
- 5000
environment:
- KEY:${VALUE}
mongo:
image: mongo