Skip to content

Commit b5147f8

Browse files
committed
feat: update image hash based on dowloaded content
1 parent d7a5fd4 commit b5147f8

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/build-tenv-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ jobs:
2727
file: ./docker/Dockerfile-debian
2828
platforms: linux/amd64,linux/arm64
2929
push: true
30+
build-args: |
31+
CACHE_BUST=${{ github.run_id }}
3032
tags: |
3133
ghcr.io/${{ github.repository_owner }}/trezor-user-env:${{ github.sha }}

.github/workflows/build-tenv.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
file: ./docker/Dockerfile-debian
3131
platforms: linux/amd64,linux/arm64
3232
push: true
33-
# todo: using github.sha does not take into account downloaded binaries in Dockerfile.debian => sha stays same
33+
build-args: |
34+
CACHE_BUST=${{ github.run_id }}
3435
tags: |
3536
ghcr.io/${{ github.repository_owner }}/trezor-user-env:${{ github.sha }}
3637
ghcr.io/${{ github.repository_owner }}/trezor-user-env:latest

docker/Dockerfile-debian

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ RUN uv sync
4949
# Copy the rest of the files
5050
COPY ./ /trezor-user-env
5151

52+
# Cache-bust downloads when inputs change
53+
ARG CACHE_BUST=1
5254
RUN ./src/binaries/firmware/bin/download.sh
5355
RUN ./src/binaries/trezord-go/bin/download.sh
5456
RUN ./src/binaries/node-bridge/download.sh

0 commit comments

Comments
 (0)