summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-04-09 23:40:21 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2021-04-09 23:53:35 +0200
commit7b3edea48ed4ffa835dd543019ae7608a0fd0bd7 (patch)
tree172e10f307d11c7c49bc2bd844f17662cb098ac0
parent770090a4b2c3775f4b269825504e600aed4eb40e (diff)
Makefile: image-push: store digest of newly pushed image
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aa9e5d4..5676fd7 100644
--- a/Makefile
+++ b/Makefile
@@ -177,7 +177,12 @@ image-build: Dockerfile
.PHONY: image-push
image-push:
@echo ' DOCKER image push $(img_)';
- @docker image push '$(img_)';
+ @docker image push '$(img_)' \
+ |grep 'digest:' \
+ |sed -E 's/.*digest: ([^ ]+) .*/\1/' \
+ |while read d; do \
+ sed -Ei "s/(digest $(arch)).*/\1 $${d}/" $(www); \
+ done;
.PHONY: image-manifest
image-manifest: