mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-02-14 10:19:52 +00:00
- add custom Dockerfile - use GitHub actions env vars as docker build args - remove .gh from Makefile and Dockerfile in destination project
18 lines
413 B
Makefile
18 lines
413 B
Makefile
DOCKER_IMAGE?=stefanprodan/k8s-podinfo
|
|
DOCKER_TAG?=$(shell git symbolic-ref --short HEAD)
|
|
GIT_REPOSITORY?=stefanprodan/k8s-podinfo
|
|
GIT_SHA:=$(shell git describe --dirty --always)
|
|
|
|
.PHONY: all
|
|
all: test build
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test ./...
|
|
|
|
.PHONY: build
|
|
build:
|
|
docker build -t $(DOCKER_IMAGE):$(DOCKER_TAG) \
|
|
--build-arg REPOSITORY=${GIT_REPOSITORY} \
|
|
--build-arg SHA=${GIT_SHA} -f Dockerfile.gh .
|