Skip to content

Commit

Permalink
Merge pull request #54 from sameersbn/baseimage-update
Browse files Browse the repository at this point in the history
update baseimage to ubuntu:bionic-20181204
  • Loading branch information
Sameer Naik authored Jan 13, 2019
2 parents f58a8ba + 01747ca commit a837ec7
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 14 deletions.
60 changes: 60 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
version: 2
jobs:
build:
working_directory: /workdir
docker:
- image: docker:18.03.0-ce-git
environment:
IMAGE_NAME: "sameersbn/squid"

steps:
- checkout

- setup_remote_docker:
version: 18.03.1-ce

- run:
name: Docker info
command: |
docker version
docker info
- restore_cache:
keys:
- cache-{{ .Branch }}
paths:
- /cache/layers.tar

- run:
name: Loading docker cache
command: |
if [[ -f /cache/layers.tar ]]; then
docker load -i /cache/layers.tar
fi
- run:
name: Build docker image
command: |
docker build --cache-from=${IMAGE_NAME} -t ${IMAGE_NAME} .
- run:
name: Generate docker build image cache
command: |
mkdir -p /cache
docker save -o /cache/layers.tar ${IMAGE_NAME}
- save_cache:
key: cache-{{ .Branch }}-{{ epoch }}
paths:
- /cache/layers.tar

workflows:
version: 2
build-and-test:
jobs:
- build:
filters:
branches:
only: /.*/
tags:
only: /.*/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:bionic-20180526
FROM ubuntu:bionic-20181204
LABEL maintainer="[email protected]"

ENV SQUID_VERSION=3.5.27 \
Expand Down
13 changes: 0 additions & 13 deletions circle.yml

This file was deleted.

0 comments on commit a837ec7

Please sign in to comment.