forked from WeblateOrg/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes need to build binary wheels repeatedly. Fixes WeblateOrg#2588
- Loading branch information
Showing
3 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,20 @@ jobs: | |
run: .github/bin/bleeding ${{needs.bleeding.outputs.weblate_sha}} ${{needs.bleeding.outputs.weblate_date}} | ||
- name: Configure Docker build | ||
run: .github/bin/get-buildx-args | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: uv-cache | ||
key: uv-cache-${{ hashFiles('Dockerfile') }}-${{ matrix.architecture }} | ||
- name: inject cache into docker | ||
uses: reproducible-containers/[email protected] | ||
with: | ||
cache-map: | | ||
{ | ||
"uv-cache": "/root/.cache" | ||
} | ||
skip-extraction: ${{ steps.cache.outputs.cache-hit }} | ||
- name: Build the Docker image | ||
run: .github/bin/docker-build | ||
|
||
|
@@ -80,6 +94,20 @@ jobs: | |
run: .github/bin/bleeding ${{needs.bleeding.outputs.weblate_sha}} ${{needs.bleeding.outputs.weblate_date}} | ||
- name: Configure Docker build | ||
run: .github/bin/get-buildx-args | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: uv-cache | ||
key: uv-cache-${{ hashFiles('Dockerfile') }}-${{ matrix.architecture }} | ||
- name: inject cache into docker | ||
uses: reproducible-containers/[email protected] | ||
with: | ||
cache-map: | | ||
{ | ||
"uv-cache": "/root/.cache" | ||
} | ||
skip-extraction: ${{ steps.cache.outputs.cache-hit }} | ||
- name: Build the Docker image | ||
run: .github/bin/docker-build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,20 @@ jobs: | |
version: v0.18.0 | ||
- name: Configure Docker build | ||
run: .github/bin/get-buildx-args | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: uv-cache | ||
key: uv-cache-${{ hashFiles('Dockerfile') }}-${{ matrix.architecture }} | ||
- name: inject cache into docker | ||
uses: reproducible-containers/[email protected] | ||
with: | ||
cache-map: | | ||
{ | ||
"uv-cache": "/root/.cache" | ||
} | ||
skip-extraction: ${{ steps.cache.outputs.cache-hit }} | ||
- name: Build the Docker image | ||
run: .github/bin/docker-build | ||
|
||
|
@@ -62,6 +76,20 @@ jobs: | |
version: v0.18.0 | ||
- name: Configure Docker build | ||
run: .github/bin/get-buildx-args | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: uv-cache | ||
key: uv-cache-${{ hashFiles('Dockerfile') }}-${{ matrix.architecture }} | ||
- name: inject cache into docker | ||
uses: reproducible-containers/[email protected] | ||
with: | ||
cache-map: | | ||
{ | ||
"uv-cache": "/root/.cache" | ||
} | ||
skip-extraction: ${{ steps.cache.outputs.cache-hit }} | ||
- name: Build the Docker image | ||
run: .github/bin/docker-build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters