-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from sameersbn/baseimage-update
update baseimage to ubuntu:bionic-20181204
- Loading branch information
Showing
3 changed files
with
61 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ | ||
|
This file was deleted.
Oops, something went wrong.