Skip to content

Commit

Permalink
fix(ci): add manifest to tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecmd committed Apr 22, 2023
1 parent c66bba6 commit 1a01d0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ build:
.PHONY: build-container-tarball
build-container-tarball:
mkdir -p target/
docker build -t sonic_exporter .
docker image save sonic_exporter -o target/sonic_exporter.tar
rm -f target/sonic_exporter.tar* || true
docker build \
-t sonic_exporter:$(VERSION) \
--label='com.azure.sonic.manifest=$(shell cat manifest.json | sed "s/__VERSION__/$(subst v,,$(VERSION))/" | jq -c .)' \
.
docker image save sonic_exporter:$(VERSION) -o target/sonic_exporter.tar
gzip target/sonic_exporter.tar

0 comments on commit 1a01d0b

Please sign in to comment.