fix(actions): compute hello world wf#5109
Conversation
|
🚅 Deployed to the rivet-pr-5109 environment in rivet-frontend
|
Code ReviewOverviewThis PR conditionally applies the IssuesEmpty-string tag risk (medium)tags: |
rivetdev/compute-hello-world:${{ github.sha }}
${{ github.event_name == 'push' && 'rivetdev/compute-hello-world:latest' || '' }}When triggered by - name: Compute tags
id: tags
run: |
TAGS="rivetdev/compute-hello-world:${{ github.sha }}"
if [ "${{ github.event_name }}" = "push" ]; then
TAGS="$TAGS
rivetdev/compute-hello-world:latest"
fi
echo "tags=$TAGS" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v4
with:
...
tags: ${{ steps.tags.outputs.tags }}
|

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: