-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitlab-elasticbeanstalk
54 lines (47 loc) · 1.12 KB
/
gitlab-elasticbeanstalk
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
image: docker:latest
variables:
REPOSITORY_URL: 898668804275.dkr.ecr.eu-central-1.amazonaws.com/cloudgeeks.ca/nginx-web-app
services:
- docker:dind
before_script:
- apk add --no-cache curl jq python py-pip
- pip install awscli
- pip install awsebcli --upgrade --user
- pwd
- echo $PATH
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/bin
- echo $PATH
- whoami
- cd /root
- mkdir /root/bin
- cp .local/bin/eb /root/bin/
- ls
- pwd
- eb
- aws --version
- ls /builds/quickbooks2018/aws-eb
- pwd
- ls -a
- apk add git
- which git
stages:
- build
build:
stage: build
script:
- $(aws ecr get-login --no-include-email --region eu-central-1)
- pwd
- ls -a
- mkdir /root/app
- cd /root/app
- pwd
- cp /builds/quickbooks2018/aws-eb/Dockerrun.aws.json .
- ls -a
- eb init cloudgeeks.ca-mh --region eu-central-1 --platform "Multi-container Docker 18.06.1-ce (Generic)" --keyname cloudgeeks.ca-Ubuntu-18-Terraform
- eb codesource local
- ls -a
- cat .elasticbeanstalk/config.yml
only:
- master
tags:
- docker