Skip to content

Commit

Permalink
Add verification step to ec-cli image build
Browse files Browse the repository at this point in the history
Make sure the binaries are there and working
by running ec version.

https://issues.redhat.com/browse/EC-1082
  • Loading branch information
joejstuart committed Jan 21, 2025
1 parent 1f38337 commit f629ed9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f629ed9

Please sign in to comment.