Skip to content

Commit

Permalink
#8082:set tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed Jun 10, 2024
1 parent ee983c6 commit b4f5723
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
set-docker-image-tag:
runs-on: build
outputs:
IMAGE_TAG: ${{ steps.set-image.outputs.IMAGE_TAG }}
tag: ${{ steps.set-image-tag.outputs.IMAGE_TAG }}
steps:
- name: Determine Docker Image Tag
id: set-image
id: set-image-tag
run: |
if [[ "${GITHUB_REF_NAME}" == "main" ]]; then
echo "::set-output name=IMAGE_TAG::latest" >> $GITHUB_OUTPUT
echo "name=IMAGE_TAG=latest" >> $GITHUB_OUTPUT
else
echo "::set-output name=IMAGE_TAG::${GITHUB_ACTOR}" >> $GITHUB_OUTPUT
echo "name=IMAGE_TAG=${GITHUB_ACTOR}" >> $GITHUB_OUTPUT
fi
build-artifact:
Expand All @@ -38,7 +38,7 @@ jobs:
environment: dev
runs-on: build-docker
container:
image: ghcr.io/${{ github.repository }}/${{ matrix.arch }}:${{ needs.set-docker-image-tag.outputs.IMAGE_TAG }}
image: ghcr.io/${{ github.repository }}/${{ matrix.arch }}:${{ needs.set-docker-image-tag.outputs.tag }}
env:
TT_METAL_HOME: ${{ env.TT_METAL_HOME }}
CONFIG: ${{ env.CONFIG }}
Expand Down

0 comments on commit b4f5723

Please sign in to comment.