Skip to content

Commit 0be4a16

Browse files
author
Kristian
authored
Merge pull request #24 from itsdalmo/revert-23-fix-version-in-docker
Revert "Fix version in docker"
2 parents 4a354d7 + 0002fc4 commit 0be4a16

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ ADD . /go/src/github.com/itsdalmo/ssm-sh
44
WORKDIR /go/src/github.com/itsdalmo/ssm-sh
55
ARG TARGET=linux
66
ARG ARCH=amd64
7-
ARG CACHE_TAG
87
RUN make build-release
98

109
FROM alpine:latest as resource

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARCH ?= amd64
55
EXT ?= ""
66

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

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

4242
build-docker:
4343
@echo "== Docker build =="
44-
docker build --build-arg CACHE_TAG=$(GIT_TAG) -t $(DOCKER_REPO):latest .
44+
docker build -t $(DOCKER_REPO):latest .
4545

4646
build-release: test
4747
@echo "== Release build =="

0 commit comments

Comments
 (0)