Skip to content

Commit

Permalink
fix(ci): docker builds don't work from remote forks
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 28, 2024
1 parent 0468c57 commit 4218b52
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,17 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
run: |
pip install click
./scripts/build_docker.py \
${{ matrix.build_preset }} \
${{ github.event_name }} \
--build_context_ref "$RELEASE" $FORCE_LATEST \
--platform "linux/arm64" \
--platform "linux/amd64"
if [ "${{ github.event_name }}" = "push" ]; then
./scripts/build_docker.py \
${{ matrix.build_preset }} \
${{ github.event_name }} \
--build_context_ref "$RELEASE" $FORCE_LATEST \
--platform "linux/arm64" \
--platform "linux/amd64"
elif [ "${{ github.event_name }}" = "pull_request" ]; then
./scripts/build_docker.py \
${{ matrix.build_preset }} \
${{ github.event_name }} \
--build_context_ref "$RELEASE" $FORCE_LATEST \
--platform "linux/amd64"
fi

0 comments on commit 4218b52

Please sign in to comment.