mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Docker --cache-from only uses first image
See also https://stackoverflow.com/a/56024061/8924614
This commit is contained in:
parent
8166d0de79
commit
e962762046
2 changed files with 3 additions and 11 deletions
6
.github/workflows/release-dev.yml
vendored
6
.github/workflows/release-dev.yml
vendored
|
@ -158,7 +158,7 @@ jobs:
|
|||
run: script/setup
|
||||
- name: Install Github Actions annotator
|
||||
run: pip install pytest-github-actions-annotate-failures
|
||||
|
||||
|
||||
- name: Register problem matchers
|
||||
run: |
|
||||
echo "::add-matcher::.github/workflows/matchers/python.json"
|
||||
|
@ -204,8 +204,6 @@ jobs:
|
|||
echo "::set-env name=DOCKERFILE::${dockerfile}"
|
||||
- name: Pull for cache
|
||||
run: |
|
||||
docker pull "${BUILD_TO}:latest" || true
|
||||
docker pull "${BUILD_TO}:beta" || true
|
||||
docker pull "${BUILD_TO}:dev" || true
|
||||
- name: Register QEMU binfmt
|
||||
run: docker run --rm --privileged multiarch/qemu-user-static:5.0.0-2 --reset -p yes
|
||||
|
@ -215,8 +213,6 @@ jobs:
|
|||
--build-arg "BUILD_VERSION=${TAG}" \
|
||||
--tag "${BUILD_TO}:${TAG}" \
|
||||
--tag "${BUILD_TO}:dev" \
|
||||
--cache-from "${BUILD_TO}:latest" \
|
||||
--cache-from "${BUILD_TO}:beta" \
|
||||
--cache-from "${BUILD_TO}:dev" \
|
||||
--file "${DOCKERFILE}" \
|
||||
.
|
||||
|
|
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -136,7 +136,7 @@ jobs:
|
|||
echo "::add-matcher::.github/workflows/matchers/gcc.json"
|
||||
echo "::add-matcher::.github/workflows/matchers/python.json"
|
||||
- run: esphome tests/${{ matrix.test }}.yaml compile
|
||||
|
||||
|
||||
pytest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -156,7 +156,7 @@ jobs:
|
|||
run: script/setup
|
||||
- name: Install Github Actions annotator
|
||||
run: pip install pytest-github-actions-annotate-failures
|
||||
|
||||
|
||||
- name: Register problem matchers
|
||||
run: |
|
||||
echo "::add-matcher::.github/workflows/matchers/python.json"
|
||||
|
@ -225,8 +225,6 @@ jobs:
|
|||
- name: Pull for cache
|
||||
run: |
|
||||
docker pull "${BUILD_TO}:latest" || true
|
||||
docker pull "${BUILD_TO}:beta" || true
|
||||
docker pull "${BUILD_TO}:dev" || true
|
||||
- name: Register QEMU binfmt
|
||||
run: docker run --rm --privileged multiarch/qemu-user-static:5.0.0-2 --reset -p yes
|
||||
- run: |
|
||||
|
@ -235,8 +233,6 @@ jobs:
|
|||
--build-arg "BUILD_VERSION=${TAG}" \
|
||||
--tag "${BUILD_TO}:${TAG}" \
|
||||
--cache-from "${BUILD_TO}:latest" \
|
||||
--cache-from "${BUILD_TO}:beta" \
|
||||
--cache-from "${BUILD_TO}:dev" \
|
||||
--file "${DOCKERFILE}" \
|
||||
.
|
||||
- name: Log in to docker hub
|
||||
|
|
Loading…
Reference in a new issue