From c076596480e6efcaf449e67618e55113aaa903c7 Mon Sep 17 00:00:00 2001 From: Alex Viscreanu Date: Fri, 19 Jun 2020 13:18:40 +0200 Subject: [PATCH] chore: Add Makefile for easier development --- .dockerignore | 2 +- Makefile | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.dockerignore b/.dockerignore index c9c8ccc..e53007c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,3 @@ * !entrypoint.sh - +.env* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dcf9cdd --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +build: + docker build -t aevea/kaniko . + +run: build + docker run \ + -v $(shell pwd):/tmp \ + -e GITHUB_REPOSITORY \ + -e GITHUB_REF \ + -e GITHUB_ACTOR \ + -e GITHUB_TOKEN \ + -e GITHUB_WORKSPACE="/tmp" \ + -e INPUT_IMAGE \ + -e INPUT_CACHE \ + -e INPUT_CACHE_TTL \ + -e INPUT_CACHE_REGISTRY \ + -e INPUT_STRIP_TAG_PREFIX \ + -e INPUT_SKIP_UNCHANGED_DIGEST \ + aevea/kaniko + +shell: build + docker run \ + -ti \ + --entrypoint sh \ + aevea/kaniko