Skip to content

Commit

Permalink
fix: use -z flag for var unset in canary
Browse files Browse the repository at this point in the history
  • Loading branch information
snario committed Jun 15, 2021
1 parent 2378711 commit 1424370
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ jobs:
- name: Docker Image Name
id: docker_image_name
run: |
if [ $CUSTOM_IMAGE_NAME == '' ]
if [ -z "${CUSTOM_IMAGE_NAME}" ]
then
echo "::set-output name=canary-docker-tag::${GITHUB_SHA::8}"
else
echo "::set-output name=canary-docker-tag::prerelease-$CUSTOM_IMAGE_NAME"
echo "::set-output name=canary-docker-tag::prerelease-${CUSTOM_IMAGE_NAME}"
fi
env:
CUSTOM_IMAGE_NAME: ${{ github.event.inputs.customImageName }}
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
context: .
file: ./ops/docker/Dockerfile.geth
push: true
tags: ethereumoptimism/l2geth:${{ needs.canary-publish.outputs.l2geth }}
tags: ethereumoptimism/l2geth:${{ steps.docker_image_name.outputs.canary-docker-tag }}

# pushes the base builder image to dockerhub
builder:
Expand Down

0 comments on commit 1424370

Please sign in to comment.