diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-04-09 23:40:21 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2021-04-09 23:53:35 +0200 |
commit | 7b3edea48ed4ffa835dd543019ae7608a0fd0bd7 (patch) | |
tree | 172e10f307d11c7c49bc2bd844f17662cb098ac0 | |
parent | 770090a4b2c3775f4b269825504e600aed4eb40e (diff) |
Makefile: image-push: store digest of newly pushed image
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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: |