RHEL build test

This commit is contained in:
Alexey Pustovalov 2024-02-15 03:06:48 +09:00
parent 776680ee44
commit 35e8638b0f

View File

@ -226,13 +226,25 @@ jobs:
${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}_tag
key: ${{ env.BASE_BUILD_NAME }}-${{ matrix.arch }}-${{ github.run_id }}
- name: Store image
- name: Push image to local storage
env:
IMAGE_TAG: ${{ steps.build_image.outputs.image-with-tag }}
CACHE_FILE_NAME: ${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}
run: |
DIGEST=$(podman inspect "${IMAGE_TAG}" --format "{{ index .RepoDigests 0}}" | cut -d '@' -f2)
echo "::group::Result"
echo "podman push \"${IMAGE_TAG}\" dir:\"$IMAGE_DIR/$DIGEST\""
podman push "${IMAGE_TAG}" dir:"$IMAGE_DIR/$DIGEST"
echo "::endgroup::"
- name: Post build
env:
IMAGE_TAG: ${{ steps.build_image.outputs.image-with-tag }}
run: |
echo "::group::Result"
echo "podman push \"${IMAGE_TAG}\" dir:\"$IMAGE_DIR/$DIGEST\""
podman push "${IMAGE_TAG}" dir:"$IMAGE_DIR/$DIGEST"
echo "podman rmi -i -f \"${IMAGE_TAG}\""
podman rmi -i -f "${IMAGE_TAG}"
echo "::endgroup::"
build_base_database: