Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Add Makefile for building/releasing docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
jisraelsen committed Jul 16, 2020
1 parent 8486247 commit ce75a42
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
image := lgcbx/rails_best_practices-action
version := 1.20.0
tagged_image := ${image}:v${version}
progress := auto

.SILENT: build

build:
@echo "Building $(tagged_image)"
docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg VERSION=$(version) \
--cache-from $(tagged_image) \
--tag $(tagged_image) \
--progress $(progress) \
.

push:
@echo "Pushing $(tagged_image)"
docker push $(tagged_image)

release: build push

0 comments on commit ce75a42

Please sign in to comment.