-
Notifications
You must be signed in to change notification settings - Fork 23
/
shippable.yml
44 lines (40 loc) · 1.46 KB
/
shippable.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Language setting
language: node_js
build:
ci:
- echo 'CI is running'
post_ci:
# Pushing to 2 different registries
# DockerHub
- docker build -t="harryi3t/sample_node_eb_docker:$BRANCH.$BUILD_NUMBER" .
- docker push harryi3t/sample_node_eb_docker:$BRANCH.$BUILD_NUMBER
# ECR
- docker tag harryi3t/sample_node_eb_docker:$BRANCH.$BUILD_NUMBER 480971114143.dkr.ecr.us-east-1.amazonaws.com/sample_node_eb_docker:$BRANCH.$BUILD_NUMBER
- docker push 480971114143.dkr.ecr.us-east-1.amazonaws.com/sample_node_eb_docker:$BRANCH.$BUILD_NUMBER
integrations:
deploy:
# Public Image (docker)
- integrationName: "aws-test"
type: aws
target: eb_docker
application_name: "sample-node-eb-docker-app"
env_name: "docker-env"
bucket_name: "elasticbeanstalk-us-east-1-480971114143"
region: "us-east-1"
image_name: "harryi3t/sample_node_eb_docker"
image_tag: "$BRANCH.$BUILD_NUMBER"
# Private Image (ECR)
- integrationName: "aws-test"
type: aws
target: eb_docker
application_name: "sample-node-eb-docker-app"
env_name: "ecr-env"
bucket_name: "elasticbeanstalk-us-east-1-480971114143"
region: "us-east-1"
image_name: "480971114143.dkr.ecr.us-east-1.amazonaws.com/sample_node_eb_docker"
image_tag: "$BRANCH.$BUILD_NUMBER"
hub:
- integrationName: "ecr-test"
type: ecr
- integrationName: "docker-test"
type: dockerRegistryLogin