Skip to content

Commit

Permalink
Feature/parallelize docker build (#155)
Browse files Browse the repository at this point in the history
* Parallelize docker build process by using matrix strategy

* Increase pip install default timeout

---------

Co-authored-by: Philipp Ross <[email protected]>
  • Loading branch information
philross and Philipp Ross authored Jan 23, 2025
1 parent a6dfe00 commit 4771e55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/container_build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ jobs:
build-and-push-image:
if: github.repository == 'QUARK-framework/QUARK'
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
#
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
Expand Down Expand Up @@ -71,7 +73,6 @@ jobs:
with:
context: .
push: true
# Start with a limited number of platforms
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platform }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.12
RUN pip install --upgrade pip
COPY . .
RUN pip install --default-timeout=1800 -r .settings/requirements_full.txt
RUN pip install --default-timeout=3600 -r .settings/requirements_full.txt

ENTRYPOINT ["python", "src/main.py"]

0 comments on commit 4771e55

Please sign in to comment.