Skip to content

Commit

Permalink
chore: fix image tag (#100)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
  • Loading branch information
andrewrynhard authored Jan 13, 2019
1 parent e6664a9 commit 22804ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@ enforce:
.PHONY: build
build:
@docker build \
-t conform/$@:$(SHA) \
-t conform/$@:$(TAG) \
--target=$@ \
$(COMMON_ARGS)
@docker run --rm -it -v $(PWD)/build:/build conform/$@:$(SHA) cp /conform-linux-amd64 /build
@docker run --rm -it -v $(PWD)/build:/build conform/$@:$(SHA) cp /conform-darwin-amd64 /build
@docker run --rm -it -v $(PWD)/build:/build conform/$@:$(TAG) cp /conform-linux-amd64 /build
@docker run --rm -it -v $(PWD)/build:/build conform/$@:$(TAG) cp /conform-darwin-amd64 /build

test:
@docker build \
-t conform/$@:$(SHA) \
-t conform/$@:$(TAG) \
--target=$@ \
$(COMMON_ARGS)
@docker run --rm -it -v $(PWD)/build:/build conform/$@:$(SHA) cp /coverage.txt /build
@docker run --rm -it -v $(PWD)/build:/build conform/$@:$(TAG) cp /coverage.txt /build

image: build
@docker build \
-t autonomy/conform:$(SHA) \
-t autonomy/conform:$(TAG) \
--target=$@ \
$(COMMON_ARGS)

push: image
@docker tag autonomy/conform:$(SHA) autonomy/conform:latest
@docker push autonomy/conform:$(SHA)
@docker tag autonomy/conform:$(TAG) autonomy/conform:latest
@docker push autonomy/conform:$(TAG)
@docker push autonomy/conform:latest

deps:
Expand Down
1 change: 1 addition & 0 deletions internal/enforcer/enforcer.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (c *Conform) Enforce(setters ...policy.Option) {
}
}

// nolint: errcheck
w.Flush()

if failed {
Expand Down

0 comments on commit 22804ff

Please sign in to comment.