Skip to content

Commit d0f614b

Browse files
committed
Reproducible artifact hashes for base builder images
1 parent ce0f50a commit d0f614b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/linux.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ jobs:
9797
- name: Build Image
9898
id: build-image
9999
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
100+
env:
101+
SOURCE_DATE_EPOCH: 0
100102
with:
101103
context: .
102104
file: build/${{ matrix.name }}.Dockerfile
@@ -118,6 +120,7 @@ jobs:
118120
run: |
119121
echo ${STEPS_BUILD_IMAGE_OUTPUTS_IMAGEID} > build/image-${MATRIX_NAME}.linux_${MATRIX_ARCH}
120122
zstd -v -T0 -6 --rm build/image-*.tar
123+
touch -t 197001010000 build/image-*
121124
env:
122125
STEPS_BUILD_IMAGE_OUTPUTS_IMAGEID: ${{ steps.build-image.outputs.imageid }}
123126
MATRIX_NAME: ${{ matrix.name }}
@@ -128,6 +131,7 @@ jobs:
128131
with:
129132
name: image-${{ matrix.name }}-linux_${{ matrix.arch }}
130133
path: build/image-*
134+
compression-level: '0'
131135

132136
generate-matrix:
133137
name: Generate build matrix

0 commit comments

Comments
 (0)