Skip to content

Commit

Permalink
set EVENT
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 2, 2024
1 parent c264e53 commit 9a2938a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
run: |
RELEASE="${{ github.event.release.tag_name }}"
FORCE_LATEST=""
EVENT="${{github.event_name}}"
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
# in the case of a manually-triggered run, read release from input
RELEASE="${{ github.event.inputs.release }}"
Expand All @@ -84,10 +85,11 @@ jobs:
cp ./scripts/build_docker.py /tmp
git checkout "${{ github.event.inputs.git-ref }}"
cp /tmp/build_docker.py scripts/
EVENT="release"
fi
pip install click
./scripts/build_docker.py \
${{ matrix.build_preset }} \
"${{ github.event_name }}" \
"$EVENT" \
--build_context_ref "$RELEASE" \
--platform ${{ matrix.platform }} $FORCE_LATEST

0 comments on commit 9a2938a

Please sign in to comment.