Skip to content

Heads-up on upgrading the docker/build-push-action action to 2.10.0 or beyond #4

@chipzoller

Description

@chipzoller

FYI, I spent hours trying to identify failures on builds when attempting to upgrade all the actions versions. In your build step "Get image digest" where you echo out the digest of the built image, they changed this up starting in v2.10.0. You will need to imageid rather than digest to return the real digest. So it becomes steps.docker-build-push.outputs.imageid.

    - name: Get image digest
      id: digest
      run: echo "::set-output name=digest::$(docker inspect ${{ steps.docker-build-push.outputs.imageid }} | jq -r '.[].RepoDigests[0] | split("@") | .[1]')"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions