File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ jobs :
3+ build :
4+ working_directory : /workdir
5+ docker :
6+ - image : docker:18.03.0-ce-git
7+ environment :
8+ IMAGE_NAME : " sameersbn/postgresql"
9+
10+ steps :
11+ - checkout
12+
13+ - setup_remote_docker :
14+ version : 18.03.1-ce
15+
16+ - run :
17+ name : Docker info
18+ command : |
19+ docker version
20+ docker info
21+
22+ - restore_cache :
23+ keys :
24+ - cache-{{ .Branch }}
25+ paths :
26+ - /cache/layers.tar
27+
28+ - run :
29+ name : Loading docker cache
30+ command : |
31+ if [[ -f /cache/layers.tar ]]; then
32+ docker load -i /cache/layers.tar
33+ fi
34+
35+ - run :
36+ name : Build docker image
37+ command : |
38+ docker build --cache-from=${IMAGE_NAME} -t ${IMAGE_NAME} .
39+
40+ - run :
41+ name : Generate docker build image cache
42+ command : |
43+ mkdir -p /cache
44+ docker save -o /cache/layers.tar ${IMAGE_NAME}
45+
46+ - save_cache :
47+ key : cache-{{ .Branch }}-{{ epoch }}
48+ paths :
49+ - /cache/layers.tar
50+
51+ workflows :
52+ version : 2
53+ build-and-test :
54+ jobs :
55+ - build :
56+ filters :
57+ branches :
58+ only : /.*/
59+ tags :
60+ only : /.*/
Original file line number Diff line number Diff line change 1- FROM ubuntu:bionic-20180526 AS add-apt-repositories
1+ FROM ubuntu:bionic-20181204 AS add-apt-repositories
22
33RUN apt-get update \
44 && DEBIAN_FRONTEND=noninteractive apt-get install -y wget gnupg \
55 && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
66 && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' >> /etc/apt/sources.list
77
8- FROM ubuntu:bionic-20180526
8+ FROM ubuntu:bionic-20181204
99
1010LABEL maintainer="sameer@damagehead.com"
1111
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments