forked from expressjs/express
-
Notifications
You must be signed in to change notification settings - Fork 1
/
codefresh.yml
25 lines (24 loc) · 856 Bytes
/
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
version: '1.0'
steps:
unit-test-step:
image: node:latest
working-directory: ${{initial-clone}}
commands:
- echo "________________"
edit-step:
image: node:latest
working-directory: ${{initial-clone}}
commands:
- echo "your text" >> package.json
build-step:
type: build
image-name: codefresh-io/express
amazon-beanstalk:
fail-fast: false
image: garland/aws-cli-docker:latest
commands:
- sh -c "[ ${{CF_BRANCH}} == master ] && aws configure set aws_access_key_id ${{ACCESS_KEY_ID}} && aws configure set aws_secret_access_key ${{SECRET_ACCESS_KEY_ID}} && aws configure set region ${{REGION}} && aws elasticbeanstalk update-environment --environment-name ${{ENV_NAME}} --version-label ${{VERSION}} "
push to registry:
type: push
candidate: ${{build-step}}
tag: latest