From f629ed9994bddd8f507e9f915ca046b29ec3dfa4 Mon Sep 17 00:00:00 2001 From: jstuart Date: Tue, 21 Jan 2025 12:03:53 -0600 Subject: [PATCH] Add verification step to ec-cli image build Make sure the binaries are there and working by running ec version. https://issues.redhat.com/browse/EC-1082 --- .github/workflows/release.yaml | 6 ++++++ Makefile | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 10d29334e..4464c8485 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -141,6 +141,12 @@ jobs: - name: Deploy statistics uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 + # before deleting the old release, make sure the new one works + - name: verify the ec-cli image + env: + IMAGE_TAG: snapshot + run: make verify-image + - name: Delete snapshot release and tag id: add_tags run: | diff --git a/Makefile b/Makefile index 6f3539014..c768a02a7 100644 --- a/Makefile +++ b/Makefile @@ -267,6 +267,9 @@ ifdef ADD_IMAGE_TAG done endif +verify-image: + @podman run --rm $(IMAGE_REPO):$(IMAGE_TAG) version + .PHONY: dev dev: REGISTRY_PORT=5000 dev: IMAGE_REPO=localhost:$(REGISTRY_PORT)/ec