From 0f184f622e3bf5658bf2d474371a442ef1402516 Mon Sep 17 00:00:00 2001 From: Thomas Riboulet Date: Fri, 18 Jan 2019 14:41:55 +0100 Subject: [PATCH] fix security issue, improve Makefile --- Gemfile.lock | 4 ++-- Makefile | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 112bb6a..d4d6a16 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,8 +7,8 @@ GEM tilt puma (2.11.1) rack (>= 1.1, < 2.0) - rack (1.5.2) - rack-protection (1.5.2) + rack (1.6.11) + rack-protection (1.5.5) rack redis (4.0.1) sidekiq (5.0.5) diff --git a/Makefile b/Makefile index 7bad261..dda51e6 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,8 @@ release: pkgr package . +build_docker: + docker build . -t mcansky/sinatra_hello:latest + docker tag mcansky/sinatra_hello:latest mcansky/sinatra_hello:`git rev-parse HEAD` +push_docker: + docker push mcansky/sinatra_hello:latest + docker push mcansky/sinatra_hello:`git rev-parse HEAD`