-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathshippable.yml
67 lines (57 loc) · 1.86 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
# Language setting
language: node_js
env:
global:
- REPO=kubernetes-helm-example
- 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}
# - GOOGLE_GCR_URL=gcr.io/shippable-gke # gcr.io/{project 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
# # Push to GCR.io
# - docker tag ttrahan/$REPO:$BRANCH.$BUILD_NUMBER $GOOGLE_GCR_URL/$REPO:$BRANCH.$BUILD_NUMBER
# - docker push $GOOGLE_GCR_URL/$REPO:$BRANCH.$BUILD_NUMBER
integrations:
hub:
# - integrationName: ttrahan-ecr
# type: ecr
- integrationName: ttrahan-dh
type: docker
# - integrationName: ttrahan-quay
# type: quay.io
# - integrationName: ttrahan-gcr
# type: gcr
notifications:
- integrationName: trigger-img-sample-kube-helm
type: webhook
payload:
- versionName=$BRANCH.$BUILD_NUMBER
branches:
only:
- master
on_success: always
on_failure: never
on_start: never
# - integrationName: trigger-img-sample-gcr
# type: webhook
# payload:
# - versionName=$BRANCH.$BUILD_NUMBER
# branches:
# only:
# - master
# on_success: always
# on_failure: never
# on_start: never