File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 21
21
- run :
22
22
name : Running the test suite
23
23
command : ./scripts/run-specs.sh
24
+ - run :
25
+ name : Signing in to Docker Hub
26
+ command : docker login -u $DOCKER_USER -p $DOCKER_PASS
27
+ - run :
28
+ name : Building and pushing images
29
+ command : |
30
+ set -e
31
+ export COMPOSE_FILE=docker-compose.build.yml
32
+ export GIT_SHA=`git rev-parse HEAD`
33
+ docker-compose build --pull
34
+ docker-compose push
24
35
- store_artifacts :
25
36
path : /tmp/artifacts
Original file line number Diff line number Diff line change
1
+ version : ' 3.3'
2
+
3
+ services :
4
+ current :
5
+ image : jfahrer/demo_web_app:${GIT_SHA}
6
+ build :
7
+ context : .
8
+ args :
9
+ PREPARE_DATABASE : " true"
10
+ WAIT_FOR_POSTGRES : " false"
11
+
12
+ latest :
13
+ image : jfahrer/demo_web_app:latest
14
+ build :
15
+ context : .
16
+ args :
17
+ PREPARE_DATABASE : " true"
18
+ WAIT_FOR_POSTGRES : " false"
19
+
20
+ wait_for_pg :
21
+ image : jfahrer/demo_web_app:wait_for_pg
22
+ build :
23
+ context : .
24
+ args :
25
+ PREPARE_DATABASE : " true"
26
+ WAIT_FOR_POSTGRES : " true"
27
+
You can’t perform that action at this time.
0 commit comments