Skip to content

Commit

Permalink
Build wheel using pushed image
Browse files Browse the repository at this point in the history
Split image pull step
Run isn't interactive
  • Loading branch information
WillB97 committed Aug 25, 2024
1 parent 66200ac commit 7516a98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Build Wheels

on:
push:
branches: [ "master", "ci" ]
pull_request:
branches: [ "master" ]

jobs:
build-image:
Expand All @@ -15,9 +12,12 @@ jobs:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Build the wheels (& Docker image)
run: make build
- name: Pull the latest image
run: docker pull ghcr.io/willb97/pyapriltags:latest
- name: Build the wheels
run: docker run --rm -v .:/apriltag -v ./dist:/out ghcr.io/willb97/pyapriltags:latest
- uses: actions/[email protected]
if: always()
with:
name: wheels
path: dist
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build:
mkdir -p ${ROOT}/dist
# build wheel
docker run \
-it --rm \
--rm \
-v ${ROOT}:/apriltag \
-v ${ROOT}/dist:/out \
pyapriltags:wheel-python3
Expand Down

0 comments on commit 7516a98

Please sign in to comment.