add build image inspect step

rel #279
This commit is contained in:
Tobias Lindberg
2024-04-08 09:01:38 +02:00
parent 4e72f962ca
commit bd75110ac0
2 changed files with 5 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
@@ -78,6 +79,9 @@ jobs:
build-args: |
apiVersion=${{ fromJSON(steps.docker_meta.outputs.json).labels['org.opencontainers.image.version'] }}
- name: Inspect image
run: docker buildx imagetools inspect ${{ fromJson(steps.docker_meta.outputs.json).tags[0] }}@${{ steps.docker_build.outputs.digest }} --format='{{index .}}'
dockerhub:
if: github.event_name == 'release'
runs-on: ubuntu-latest