Skip to content

Commit 1bff41b

Browse files
committed
Fix release builds appearing dirty
1 parent dd7bcbc commit 1bff41b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ docker-build:
4747
docker run -v $(shell pwd):/usr/src/app/src/github.com/aws/amazon-ecs-cli \
4848
--workdir=/usr/src/app/src/github.com/aws/amazon-ecs-cli \
4949
--env GOPATH=/usr/src/app \
50+
--env ECS_RELEASE=$(ECS_RELEASE) \
5051
golang:1.4-cross make $(LINUX_BINARY)
5152
docker run -v $(shell pwd):/usr/src/app/src/github.com/aws/amazon-ecs-cli \
5253
--workdir=/usr/src/app/src/github.com/aws/amazon-ecs-cli \
5354
--env GOPATH=/usr/src/app \
55+
--env ECS_RELEASE=$(ECS_RELEASE) \
5456
golang:1.4-cross make $(DARWIN_BINARY)
5557

5658
.PHONY: supported-platforms

‎scripts/stage.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ if ! ${ALLOW_DIRTY}; then
9999
echo "Cloning to a clean directory ${clean_directory}"
100100
git clone --quiet "${CWD}" "${clean_directory}"
101101
cd "${clean_directory}"
102+
export ECS_RELEASE="cleanbuild"
102103
fi
103104

104105
make docker-build

0 commit comments

Comments
 (0)