Remove sudo
This commit is contained in:
parent
93a69e601d
commit
acc4da29d5
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -30,7 +30,7 @@ DOCKER_TARGETS := $(foreach TAG,$(DOCKER_TAGS),$(DOCKER_REPO)$(COLON)$(TAG))
|
||||||
|
|
||||||
$(DOCKER_TARGETS): $(DEB_REPO_DATA)
|
$(DOCKER_TARGETS): $(DEB_REPO_DATA)
|
||||||
|
|
||||||
sudo docker build --build-arg REPO_URL=$(REPO_URL) --build-arg PRODUCT_NAME=$(COMPANY_NAME)-$(PRODUCT_NAME) -t $(subst $(COLON),:,$@) . &&\
|
docker build --build-arg REPO_URL=$(REPO_URL) --build-arg PRODUCT_NAME=$(COMPANY_NAME)-$(PRODUCT_NAME) -t $(subst $(COLON),:,$@) . &&\
|
||||||
mkdir -p $$(dirname $@) &&\
|
mkdir -p $$(dirname $@) &&\
|
||||||
echo "Done" > $@
|
echo "Done" > $@
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ clean:
|
||||||
rm -rfv $(DOCKER_TARGETS)
|
rm -rfv $(DOCKER_TARGETS)
|
||||||
|
|
||||||
clean-docker:
|
clean-docker:
|
||||||
sudo docker rmi -f $$(sudo docker images -q $(COMPANY_NAME)/*) || exit 0
|
docker rmi -f $$(docker images -q $(COMPANY_NAME)/*) || exit 0
|
||||||
|
|
||||||
deploy: $(DOCKER_TARGETS)
|
deploy: $(DOCKER_TARGETS)
|
||||||
$(foreach TARGET,$(DOCKER_TARGETS),sudo docker push $(subst $(COLON),:,$(TARGET));)
|
$(foreach TARGET,$(DOCKER_TARGETS),docker push $(subst $(COLON),:,$(TARGET));)
|
||||||
|
|
Loading…
Reference in a new issue