add github action to push image (#21)

Co-authored-by: sh0rez <me@shorez.de>
This commit is contained in:
Jeroen Op 't Eynde 2021-06-04 22:10:06 +02:00 committed by GitHub
parent 5776ff829f
commit 4f0571d7e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 4 deletions

View file

@ -1,11 +1,11 @@
.PHONY: build test push push-image
IMAGE_NAME ?= docsonnet
IMAGE_PREFIX ?= jsonnet-libs
IMAGE_PREFIX ?= jsonnetlibs
IMAGE_TAG ?= 0.0.1
build:
docker build -t $(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG) .
docker buildx build -t $(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG) .
test: build