diff --git a/codefresh.yaml b/codefresh.yaml new file mode 100644 index 000000000..854f0f2c1 --- /dev/null +++ b/codefresh.yaml @@ -0,0 +1,8 @@ +version: "1.0" +steps: + test: + type: "freestyle" + image: alpine + commands: + - sleep 36 + - exit 0 diff --git a/codefresh.yml b/codefresh.yml index d6ca58c3d..f74062fd9 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,67 +1,8 @@ -version: '1.0' +version: "1.0" steps: - build_step: - title: Build - type: build - dockerfile: Dockerfile - image_name: demochat - tag: '${{CF_BRANCH}}' - -# unit_tests: -# title: Unit Tests -# image: ${{build_step}} -# fail_fast: false -# working-directory : /usr/src/app -# commands: -# - npm test - - unit_test: - type: composition - working_directory: '${{main_clone}}' - composition: - version: '2' - services: - mongo: - image: 'mongo:latest' - ports: - - 27017 - composition_candidates: - test: - image: '${{build_step}}' - command: npm test - push_to_registry: - title: Push To Registry - type: push - candidate: ${{build_step}} - tag: ${{CF_BRANCH}} - - deploy_to_ecs: - title: Deploy Container to ECS - image: codefresh/cf-deploy-ecs + test: + type: "freestyle" + image: alpine commands: - - >- - cfecs-update --image-name containers101/demochat --image-tag - ${{CF_BRANCH}} eu-west-1 demochat-production demochat-service - environment: - - 'AWS_ACCESS_KEY_ID=${{AWS_ACCESS_KEY_ID}}' - - 'AWS_SECRET_ACCESS_KEY=${{AWS_SECRET_ACCESS_KEY}}' - when: - condition: - all: - deploy_to_ecs: '"${{DEPLOY_ECS}}" == "true"' - - deploy_to_kubernetes: - image: codefresh/cf-deploy-kubernetes - tag: latest - working_directory: ${{main_clone}} - commands: - - /cf-deploy-kubernetes deployment.yml - environment: - - KUBERNETES_USER=${{KUBERNETES_USER}} - - KUBERNETES_PASSWORD=${{KUBERNETES_PASSWORD}} - - KUBERNETES_SERVER=${{KUBERNETES_SERVER}} - - DOCKER_IMAGE_TAG=${{CF_BRANCH}} - when: - condition: - all: - deploy_to_kubernetes: '"${{DEPLOY_KUBERNETES}}" == "true"' + # - sleep 36 + - exit 0 diff --git a/package.json b/package.json index c6ca0ef66..22e2ee9c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lets-chat", - "version": "0.4.5", + "version": "0.4.6", "description": "A chat app for small teams.", "license": "MIT", "main": "app.js",