Skip to content

Commit

Permalink
wip: options
Browse files Browse the repository at this point in the history
  • Loading branch information
nourbalaha committed Dec 6, 2024
1 parent 85bbaf8 commit 6f4e015
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
id: options
env:
TAG: ${{ inputs.new_tag_short || '' }}
NAME: ${{ inputs.name || '' }}
NAME: ${{ inputs.name || 'test-20241206' }}
SHA: ${{ inputs.sha_short || '' }}
run: |
if [[ -n $TAG ]]; then
Expand All @@ -54,13 +54,10 @@ jobs:
TAGS+=,${IMAGE_NAME}:${TAG%%.*}
TAGS+=,${IMAGE_NAME}:latest
fi
elif [[ -n $SHA ]]; then
else
PLATFORMS=linux/amd64
VERSION=$SHA
TAGS=$IMAGE_NAME:$SHA
else
echo "ERROR: No tag or SHA provided." >&2
exit 1
TAGS=$IMAGE_NAME:$NAME
fi
echo "platforms=$PLATFORMS" >> "$GITHUB_OUTPUT"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 6f4e015

Please sign in to comment.