File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
- version : 2
1
+ version : 2.1
2
2
jobs :
3
3
docker-build :
4
4
resource_class : small
@@ -17,17 +17,20 @@ jobs:
17
17
- setup_remote_docker
18
18
- run : docker build --tag zync:build --file ./Dockerfile .
19
19
- run : docker network create net0
20
- - run : docker run --net net0 --name ${POSGRES_CONTAINER_NAME} -d -p 5432:5432 -e POSTGRES_USER=${POSTGRES_USER} -e POSTGRES_PASSWORD=${POSTGRES_PASSWORD} -e POSTGRES_DB=${POSTGRES_DB} postgres:10 -alpine
20
+ - run : docker run --net net0 --name ${POSGRES_CONTAINER_NAME} -d -p 5432:5432 -e POSTGRES_USER=${POSTGRES_USER} -e POSTGRES_PASSWORD=${POSTGRES_PASSWORD} -e POSTGRES_DB=${POSTGRES_DB} postgres:12 -alpine
21
21
- run :
22
22
command : |
23
23
docker run --net net0 -e RAILS_ENV=${RAILS_ENV} -e DATABASE_URL=${DATABASE_URL} \
24
24
zync:build rails db:setup
25
25
26
26
build :
27
+ parameters :
28
+ postgresql_version :
29
+ type : string
27
30
working_directory : /opt/app-root/zync
28
31
docker :
29
32
- image : registry.access.redhat.com/ubi7/ruby-27
30
- - image : circleci/postgres:10-alpine -ram
33
+ - image : circleci/postgres:<< parameters.postgresql_version >> -ram
31
34
environment :
32
35
RAILS_ENV : test
33
36
DISABLE_SPRING : 1 # we can't really run spring as it hangs on local circleci build
78
81
- vendor/bundle
79
82
80
83
workflows :
81
- version : 2
84
+ version : 2.1
82
85
build_and_test_docker :
83
86
jobs :
84
- - build
87
+ - build :
88
+ matrix :
89
+ parameters :
90
+ postgresql_version : [ "10-alpine", "12-alpine" ]
85
91
- docker-build
You can’t perform that action at this time.
0 commit comments