Skip to content
This repository was archived by the owner on Dec 24, 2019. It is now read-only.

Commit 252c388

Browse files
committed
scm-source.json no longer needed
1 parent a48b2b0 commit 252c388

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ RUN apk add --no-cache python3 ca-certificates && \
88
WORKDIR /
99

1010
COPY kube_aws_autoscaler /kube_aws_autoscaler
11-
COPY scm-source.json /
1211

1312
ARG VERSION=dev
1413
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" /kube_aws_autoscaler/__init__.py

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,15 @@
33
IMAGE ?= hjacobs/kube-aws-autoscaler
44
VERSION ?= $(shell git describe --tags --always --dirty)
55
TAG ?= $(VERSION)
6-
GITHEAD = $(shell git rev-parse --short HEAD)
7-
GITURL = $(shell git config --get remote.origin.url)
8-
GITSTATU = $(shell git status --porcelain || echo "no changes")
96

107
default: docker
118

129
test:
1310
tox
1411

15-
docker: scm-source.json
12+
docker:
1613
docker build --build-arg "VERSION=$(VERSION)" -t "$(IMAGE):$(TAG)" .
1714
@echo 'Docker image $(IMAGE):$(TAG) can now be used.'
1815

1916
push: docker
2017
docker push "$(IMAGE):$(TAG)"
21-
22-
scm-source.json: .git
23-
@echo '{"url": "git:$(GITURL)", "revision": "$(GITHEAD)", "author": "$(USER)", "status": "$(GITSTATUS)"}' > scm-source.json
24-

0 commit comments

Comments
 (0)