Behaviour
Steps to reproduce this issue
- Setup regular, simple image build/tag/push workflow containing
labels key:
- name: Build Docker Image
id: build_api
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
labels: |
"commit=${{ env.SHA_SHORT }}"
"commit_url=${{ env.COMMIT_URL }}/${{ env.SHA_SHORT }}"
tags: |
something:latest
cache-to: type=gha,mode=max
cache-from: type=gha
push: true
Expected behaviour
Using docker image inspect should list above labels in JSON output.
Actual behaviour
No labels were shown in the JSON output as they likely aren't applied in the first place.
Logs
Build logs actually show that propper strings are being used, I just don't see those applied to the image when doing inspect:

Behaviour
Steps to reproduce this issue
labelskey:Expected behaviour
Using
docker image inspectshould list above labels in JSON output.Actual behaviour
No labels were shown in the JSON output as they likely aren't applied in the first place.
Logs
Build logs actually show that propper strings are being used, I just don't see those applied to the image when doing inspect:
