Skip to content

Commit

Permalink
Fix output format
Browse files Browse the repository at this point in the history
- Fix outputs format
- Experiment with metadata parsing in different ways
- Add labels back to container metadata

Signed-off-by: eternaltyro <230743+eternaltyro@users.noreply.github.com>
  • Loading branch information
eternaltyro committed May 17, 2024
1 parent 98b7608 commit 41624d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ecs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Parse build step metadata
id: parse-image-meta
run: |
meta=${{ steps.build-push-image.Metadata }}
meta=${{ steps.build-push-image.outputs.Metadata }}
i_name=${{ steps.build-push-image.outputs.Metadata.*."image.name" }}
i_name2=${{ steps.meta.outputs.tags[0] }}
echo image=$( echo $meta | jq '."image.name"' )
echo "image_name=${image}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 41624d7

Please sign in to comment.