forked from harryi3t/sample_node_eb_docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshippable.yml
71 lines (61 loc) · 2.08 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Language setting
language: node_js
env:
global:
- REPO=sample-node-eb-docker
- DOCKER_HUB_URL=ttrahan # {account name}
- AMAZON_ECR_URL=288971733297.dkr.ecr.us-east-1.amazonaws.com # {AWS account ID}.dkr.ecr.us-east-1
- QUAY_URL="quay.io/ttrahan" # quay.io/{account name}
build:
ci:
- echo 'CI is running'
post_ci:
- docker build -t="ttrahan/$REPO:$BRANCH.$BUILD_NUMBER" .
# Pushing to different registries
# # ECR
# - docker tag ttrahan/$REPO:$BRANCH.$BUILD_NUMBER $AMAZON_ECR_URL/$REPO:$BRANCH.$BUILD_NUMBER
# - docker push $AMAZON_ECR_URL/$REPO:$BRANCH.$BUILD_NUMBER
# DockerHub
- docker push $DOCKER_HUB_URL/$REPO:$BRANCH.$BUILD_NUMBER
# # Quay.io
# - docker tag ttrahan/$REPO:$BRANCH.$BUILD_NUMBER $QUAY_URL/$REPO:$BRANCH.$BUILD_NUMBER
# - docker push $QUAY_URL/$REPO:$BRANCH.$BUILD_NUMBER
integrations:
deploy:
# # Amazon ECR
# - integrationName: "AWS - ttrahan"
# type: aws
# target: eb_docker
# application_name: "shippable-demo-eb"
# env_name: "eb-docker"
# bucket_name: "elasticbeanstalk-us-east-1-288971733297"
# region: "us-east-1"
# image_name: "$AMAZON_ECR_URL/$REPO"
# image_tag: "$BRANCH.$BUILD_NUMBER"
# Docker Hub
- integrationName: "AWS - ttrahan"
type: aws
target: eb_docker
application_name: "shippable-demo-eb"
env_name: "eb-docker"
bucket_name: "elasticbeanstalk-us-east-1-288971733297"
region: "us-east-1"
image_name: "$DOCKER_HUB_URL/$REPO"
image_tag: "$BRANCH.$BUILD_NUMBER"
# # Quay.io
# - integrationName: "AWS - ttrahan"
# type: aws
# target: eb_docker
# application_name: "shippable-demo-eb"
# env_name: "eb-docker"
# bucket_name: "elasticbeanstalk-us-east-1-288971733297"
# region: "us-east-1"
# image_name: "$QUAY_URL/$REPO"
# image_tag: "$BRANCH.$BUILD_NUMBER"
hub:
# - integrationName: "Amazon ECR - ttrahan"
# type: ecr
- integrationName: "Docker Hub"
type: docker
# - integrationName: "Quay - ttrahan"
# type: quay.io