File tree Expand file tree Collapse file tree 2 files changed +7
-18
lines changed Expand file tree Collapse file tree 2 files changed +7
-18
lines changed Original file line number Diff line number Diff line change 5
5
steps :
6
6
- checkout
7
7
- restore_cache :
8
- key : docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}-{{ checksum "Gemfile.lock" }}
8
+ key : docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}
9
9
- run :
10
10
command : |
11
11
if [ ! -f ~/caches/images.tar ]; then
@@ -14,15 +14,15 @@ jobs:
14
14
docker save $(docker images | awk 'NR>=2 && ! /^<none>/{print $1}') -o ~/caches/images.tar
15
15
fi
16
16
- save_cache :
17
- key : docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}-{{ checksum "Gemfile.lock" }}
17
+ key : docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}
18
18
paths : ~/caches/images.tar
19
19
system_test :
20
20
machine : true
21
21
parallelism : 2
22
22
steps :
23
23
- checkout
24
24
- restore_cache :
25
- key : docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}-{{ checksum "Gemfile.lock" }}
25
+ key : docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}
26
26
- run :
27
27
command : docker load -q -i ~/caches/images.tar
28
28
- run :
@@ -130,4 +130,6 @@ workflows:
130
130
tags :
131
131
only : /^v[0-9]{1,}(\.[0-9]{1,}){2}$/
132
132
branches :
133
- ignore : /.*/
133
+ ignore : /.*/
134
+ requires :
135
+ - publish_to_rubygems
Original file line number Diff line number Diff line change @@ -21,20 +21,7 @@ RUN apk update && \
21
21
yaml-dev \
22
22
zlib-dev
23
23
24
- ENV BC_DIR /bucky-core/
25
- ENV PATH /bucky-core/exe/:$PATH
26
- WORKDIR $BC_DIR
27
- COPY . $BC_DIR
28
-
29
- RUN \
30
- gem install bundler -v 1.17.3 && \
31
- echo 'gem: --no-document' >> ~/.gemrc && \
32
- cp ~/.gemrc /etc/gemrc && \
33
- chmod uog+r /etc/gemrc && \
34
- bundle config --global build.nokogiri --use-system-libraries && \
35
- bundle config --global jobs 4 && \
36
- bundle install && \
37
- rm -rf ~/.gem
24
+ RUN gem install bucky-core
38
25
39
26
WORKDIR /app
40
27
RUN chown -R nobody:nobody /app
You can’t perform that action at this time.
0 commit comments