Skip to content

Commit

Permalink
Move shell variables to workflow step env
Browse files Browse the repository at this point in the history
Signed-off-by: eternaltyro <230743+eternaltyro@users.noreply.github.com>
  • Loading branch information
eternaltyro committed May 17, 2024
1 parent 939976c commit cde1ca5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ecs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ jobs:
- name: Parse build step metadata
id: parse-image-meta
run: |
i_name2=${{ steps.meta.outputs.tags[0] }}
meta=${{ steps.build-push-image.outputs.Metadata }}
echo image=$( echo $meta | jq '."image.name"' )
echo $IMAGE_TAG
echo image=$( echo $BUILD_META | jq '."image.name"' )
echo "image_name=${image}" >> $GITHUB_OUTPUT
env:
IMAGE_TAG: ${{ steps.meta.outputs.tags[0] }}
BUILD_META: ${{ steps.build-push-image.outputs.Metadata }}

deploy:
name: Deploy to ECS
Expand Down

0 comments on commit cde1ca5

Please sign in to comment.