Remove docker inspect (fails with remote DOCKER_HOST)
This commit is contained in:
@@ -38,9 +38,6 @@ outputs:
|
||||
tag:
|
||||
description: The primary tag used (date-SHA)
|
||||
value: ${{ steps.meta.outputs.tag }}
|
||||
digest:
|
||||
description: Image digest (only available after push)
|
||||
value: ${{ steps.push-digest.outputs.digest }}
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -112,11 +109,3 @@ runs:
|
||||
for t in $(echo ${{ steps.meta.outputs.tags }} | tr ',' ' '); do
|
||||
docker push "${{ inputs.image-name }}:$t"
|
||||
done
|
||||
|
||||
- name: Get image digest
|
||||
id: push-digest
|
||||
shell: bash
|
||||
if: inputs.push == 'true'
|
||||
run: |
|
||||
DIGEST="$(docker inspect "${{ inputs.image-name }}:${{ steps.meta.outputs.tag }}" --format '{{.Digest}}' 2>/dev/null)"
|
||||
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user