File tree Expand file tree Collapse file tree 2 files changed +52
-20
lines changed Expand file tree Collapse file tree 2 files changed +52
-20
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ jobs :
3
+ build :
4
+ machine : true
5
+ working_directory : ~/postfix
6
+
7
+ steps :
8
+ - checkout
9
+ - run :
10
+ name : Install Docker Compose
11
+ command : |
12
+ set -x
13
+ curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
14
+ chmod +x ~/docker-compose
15
+ sudo mv ~/docker-compose /usr/local/bin/docker-compose
16
+
17
+ - run :
18
+ name : Build Postfix Docker image
19
+ command : |
20
+ docker info
21
+ docker build -t htmlgraphic/postfix:latest .
22
+
23
+
24
+ # LIVE Build
25
+
26
+ - run :
27
+ name : Start LIVE Container
28
+ command : |
29
+ docker-compose -f docker-compose.yml up -d
30
+ docker ps -a
31
+ sleep 10
32
+
33
+ - run : mkdir -p ~/postfix/logs/container-build
34
+
35
+ - run :
36
+ name : LIVE Build Tests
37
+ command : |
38
+ docker logs postfix | grep "$SASL_USER:$SASL_PASS"
39
+
40
+ - run :
41
+ name : Container Logs
42
+ command : |
43
+ docker logs postfix > ~/postfix/logs/container-build/log_output-LIVE.txt
44
+
45
+
46
+
47
+ - store_artifacts :
48
+ path : ~/postfix/logs/container-build
49
+ destination : raw-test-output
50
+
51
+ - store_test_results :
52
+ path : ~/postfix/logs/container-build
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments