Verify healthcheck in image archives before and after Podman import
Build and Publish TVJ EPG Image / build (push) Successful in 33s
Build and Publish TVJ EPG Image / build (push) Successful in 33s
This commit is contained in:
@@ -73,9 +73,18 @@ jobs:
|
||||
-t "$FULL_IMAGE:latest" \
|
||||
-t "$FULL_IMAGE:v$VERSION" \
|
||||
-t "$FULL_IMAGE:sha-$SHORT_SHA" \
|
||||
--load \
|
||||
--output "type=docker,dest=$RUNNER_TEMP/tvj-epg-built.tar" \
|
||||
.
|
||||
|
||||
- name: Verify BuildKit export and load image
|
||||
run: |
|
||||
set -euo pipefail
|
||||
python3 scripts/verify_image_healthcheck.py --archive "$RUNNER_TEMP/tvj-epg-built.tar"
|
||||
docker load --input "$RUNNER_TEMP/tvj-epg-built.tar"
|
||||
|
||||
- name: Report container engine versions
|
||||
run: docker version
|
||||
|
||||
- name: Verify healthcheck and publish
|
||||
env:
|
||||
REGISTRY: ${{ vars.REGISTRY }}
|
||||
@@ -84,7 +93,8 @@ jobs:
|
||||
set -euo pipefail
|
||||
SHORT_SHA="${GITHUB_SHA::7}"
|
||||
FULL_IMAGE="$REGISTRY/david/tvj-epg"
|
||||
docker image inspect "$FULL_IMAGE:latest" | python3 scripts/verify_image_healthcheck.py
|
||||
docker image save --output "$RUNNER_TEMP/tvj-epg-loaded.tar" "$FULL_IMAGE:latest"
|
||||
python3 scripts/verify_image_healthcheck.py --archive "$RUNNER_TEMP/tvj-epg-loaded.tar"
|
||||
docker push "$FULL_IMAGE:latest"
|
||||
docker push "$FULL_IMAGE:v$VERSION"
|
||||
docker push "$FULL_IMAGE:sha-$SHORT_SHA"
|
||||
|
||||
Reference in New Issue
Block a user