From 2e6754e0b5ff2ca3715693a30c24c0ad8b2e4478 Mon Sep 17 00:00:00 2001 From: swo0k Date: Wed, 19 Dec 2018 15:27:39 +0800 Subject: [PATCH] Docker repo lowercase --- Makefile | 6 +++--- README.md | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 7d3c4c8..693affb 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ PREFIX?=$(shell pwd) # Setup name variables for the package/tool NAME := r53Server -DOCKER_REPO := quay.io/swo0k/$(NAME) +DOCKER_REPO := quay.io/swo0k/$(shell echo ${NAME} | tr '[:upper:]' '[:lower:]') PKG := github.com/so0k/$(NAME) # Set any default go build tags @@ -70,11 +70,11 @@ staticcheck: ## Verifies `staticcheck` passes .PHONY: docker docker: ## Build docker image - docker build -t $(shell echo ${DOCKER_REPO} | tr '[:upper:]' '[:lower:]'):$(VERSION) . + docker build -t $(DOCKER_REPO):$(VERSION) . .PHONY: docker-push docker-push: ## Push docker image - docker push $(shell echo ${DOCKER_REPO} | tr '[:upper:]' '[:lower:]'):$(VERSION) + docker push $(DOCKER_REPO):$(VERSION) .PHONY: cover cover: ## Runs go test with coverage diff --git a/README.md b/README.md index ceea7b2..9261e88 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,10 @@ based on [jessfraz/s3server](https://github.com/jessfraz/s3server) ## Usage -``` +```bash Server to index & view recods in r53 zones. Version: v0.1.0 - Build: 9089a07-dirty + Build: 9089a07 -aws-access-key-id string AWS access key -aws-secret-access-key string @@ -30,12 +30,12 @@ Server to index & view recods in r53 zones. ## Docker -``` +```bash docker run -d \ -p 8080:8080 \ -e AWS_ACCESS_KEY_ID \ -e AWS_SECRET_ACCESS_KEY \ - so0k/r53server \ + quay.io/swo0k/r53server:v0.1.0 \ -zone Z2UE.......... \ -zone Z1W........... ```