Skip to content

Commit

Permalink
multi-arch build
Browse files Browse the repository at this point in the history
  • Loading branch information
double16 committed Jan 1, 2024
1 parent 076e8cc commit af7f241
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,17 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
5 changes: 4 additions & 1 deletion dvrprocess/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,10 @@ def assert_not_transcoding(input_file, tempfilename=None, exit=True):
if (time.time() - os.path.getmtime(tempfilename)) < 172800:
logger.info(f"Already transcoding, skipping {input_file} ({tempfilename})")
# We don't want clean up to remove these files and mess up other processes
TEMPFILENAMES.remove(tempfilename)
try:
TEMPFILENAMES.remove(tempfilename)
except ValueError:
pass
if exit:
sys.exit(0)
else:
Expand Down

0 comments on commit af7f241

Please sign in to comment.