Skip to content

Commit f437f94

Browse files
ci: remove sudo and remove extra build
Signed-off-by: Abhinandan Purkait <[email protected]>
1 parent 8b37daa commit f437f94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ container: lint build
3333
@cp Dockerfile _output/Dockerfile
3434
@cp go.mod go.sum _output/
3535
@cp -r pkg main.go Makefile _output/
36-
@sudo docker build -t $(IMAGE):$(IMAGE_TAG) $(DBUILD_ARGS) -f _output/Dockerfile _output
36+
@docker build -t $(IMAGE):$(IMAGE_TAG) $(DBUILD_ARGS) -f _output/Dockerfile _output
3737

38-
push-container: lint build container
38+
push-container: lint container
3939
@echo ">> building container image"
40-
@sudo docker push $(IMAGE):$(IMAGE_TAG)
40+
@docker push $(IMAGE):$(IMAGE_TAG)
4141

4242
gomod:
4343
@echo ">> verifying go modules"
@@ -63,7 +63,7 @@ tools-check:
6363
@command -v golangci-lint >/dev/null 2>&1 || { \
6464
echo ">> installing golangci-lint"; \
6565
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s latest; \
66-
sudo mv ./bin/golangci-lint /usr/local/bin/; \
66+
mv ./bin/golangci-lint /usr/local/bin/; \
6767
}
6868
@command -v goimports >/dev/null 2>&1 || { \
6969
echo ">> installing goimports"; \

0 commit comments

Comments
 (0)