Skip to content

Commit

Permalink
Merge pull request #24 from itsdalmo/revert-23-fix-version-in-docker
Browse files Browse the repository at this point in the history
Revert "Fix version in docker"
  • Loading branch information
Kristian authored Aug 23, 2018
2 parents 4a354d7 + 0002fc4 commit 0be4a16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ADD . /go/src/github.com/itsdalmo/ssm-sh
WORKDIR /go/src/github.com/itsdalmo/ssm-sh
ARG TARGET=linux
ARG ARCH=amd64
ARG CACHE_TAG
RUN make build-release

FROM alpine:latest as resource
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARCH ?= amd64
EXT ?= ""

GIT_REF = $(shell git rev-parse --short HEAD)
GIT_TAG = $(if $(TRAVIS_TAG),$(TRAVIS_TAG),$(if $(CACHE_TAG),$(CACHE_TAG),ref-$(GIT_REF)))
GIT_TAG = $(if $(TRAVIS_TAG),$(TRAVIS_TAG),ref-$(GIT_REF))

LDFLAGS = -ldflags "-X=main.version=$(GIT_TAG)"
SRC = $(shell find . -type f -name '*.go' -not -path "./vendor/*")
Expand Down Expand Up @@ -41,7 +41,7 @@ run-docker:

build-docker:
@echo "== Docker build =="
docker build --build-arg CACHE_TAG=$(GIT_TAG) -t $(DOCKER_REPO):latest .
docker build -t $(DOCKER_REPO):latest .

build-release: test
@echo "== Release build =="
Expand Down

0 comments on commit 0be4a16

Please sign in to comment.