Prepare universal workflow

This commit is contained in:
Alexey Pustovalov 2024-02-11 01:26:22 +09:00
parent d2fa46f5a5
commit 65c73b008d

View File

@ -132,10 +132,10 @@ jobs:
- name: Image digest
env:
TAGS: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
IMAGE_TAG: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
CACHE_FILE_NAME: ${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}
run: |
echo "$TAGS"
DIGEST=$(podman inspect $IMAGE_TAG --format "{{ index .RepoDigests 0}}" | cut -d '@' -f2)
echo "::group::Image digest"
echo "$DIGEST"
echo "::endgroup::"
@ -159,11 +159,10 @@ jobs:
- name: Image digest
env:
TAGS: ${{ steps.meta.outputs.tags[0] }}
IMAGE_TAG: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
CACHE_FILE_NAME: ${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}
run: |
echo "${{ steps.docker_build.outputs }}"
echo "{{ steps.docker_build.outputs }}"
DIGEST=$(podman inspect $IMAGE_TAG --format "{{ index .RepoDigests 0}}" | cut -d '@' -f2)
echo "::group::Image digest"
echo "$DIGEST"
echo "::endgroup::"
@ -243,9 +242,10 @@ jobs:
- name: Image digest
env:
DIGEST: ${{ steps.docker_build.outputs.digest }}
IMAGE_TAG: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
CACHE_FILE_NAME: ${{ matrix.build }}_${{ matrix.arch }}
run: |
DIGEST=$(podman inspect $IMAGE_TAG --format "{{ index .RepoDigests 0}}" | cut -d '@' -f2)
echo "::group::Image digest"
echo "$DIGEST"
echo "::endgroup::"