aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Quintana <[email protected]>2021-03-16 01:04:46 +0100
committerJose Quintana <[email protected]>2021-03-16 01:04:46 +0100
commitb0d6aefea8b777796c27e2e2617233b57cd58462 (patch)
tree9117bea3b1141ec158c7a40c5f9e2aca970afd33
parent990c5b8d8a75df6238699def2d1765dc4f2c5df9 (diff)
downloadalpine-cgit-b0d6aefea8b777796c27e2e2617233b57cd58462.tar.xz
alpine-cgit-b0d6aefea8b777796c27e2e2617233b57cd58462.zip
chore: publish/dry-run make tasks
-rw-r--r--Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 96438b2..f244381 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ build:
-f Dockerfile .
.PHONY: build
-publish:
+publish-dry-run:
docker run --rm \
-e DRONE_TAG=$(TAG_VERSION) \
-e PLUGIN_TAG=$(TAG_VERSION) \
@@ -21,4 +21,21 @@ publish:
joseluisq/drone-docker \
--dockerfile Dockerfile \
--dry-run
+.PHONY: publish-dry-run
+
+publish:
+ docker run --rm \
+ -e DRONE_TAG=$(TAG_VERSION) \
+ -e PLUGIN_TAG=$(TAG_VERSION) \
+ -e PLUGIN_REPO=$(DOCKER_IMAGE_TAG) \
+ -e DRONE_COMMIT_SHA=$(DRONE_COMMIT_SHA) \
+ -e PLUGIN_USERNAME=$(PLUGIN_USERNAME) \
+ -e PLUGIN_PASSWORD=$(PLUGIN_PASSWORD) \
+ -e PLUGIN_AUTO_TAG=true \
+ -e PLUGIN_AUTO_TAG_ALIASES=latest \
+ -v $(PWD):$(PWD) \
+ -w $(PWD) \
+ --privileged \
+ joseluisq/drone-docker \
+ --dockerfile Dockerfile
.PHONY: publish