forked from flowerinthenight/golang-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
21 lines (18 loc) · 1.1 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
echo "Running '$0' for '${NAME}'"
### The following section will push your container image to ECR. The `$NAME` variable is provided from our
### Makefile under 'deploy:' rule, which is set to the name of the component/module/service.
###
# docker tag ${NAME}:${CIRCLE_SHA1} 963826138034.dkr.ecr.ap-northeast-1.amazonaws.com/${NAME}:${CIRCLE_SHA1}
# docker images
# `aws ecr get-login --no-include-email --region ap-northeast-1`
# docker push 963826138034.dkr.ecr.ap-northeast-1.amazonaws.com/${NAME}:${CIRCLE_SHA1}
### If you need to deploy your service to kubernetes, you need to use the kubectl tool. The setup for kubectl's
### config file is also included in this section, although you need to provide your own kubectl's config file
### in the root directory. In this example, the filename is `kubeconf.yaml`.
###
# curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
# chmod +x ./kubectl
# mv ./kubectl /usr/local/bin/kubectl
# mkdir ${HOME}/.kube
# cp kubeconf.yaml ${HOME}/.kube/config