File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 4343 - name : Set version output
4444 id : version
4545 run : |
46- VERSION="${{ matrix.GO_VERSION }}.$(date +%s)"
46+ # Use commit timestamp for reproducible builds
47+ COMMIT_TIMESTAMP="$(git show -s --format=%ct HEAD)"
48+ VERSION="${{ matrix.GO_VERSION }}.${COMMIT_TIMESTAMP}"
4749 echo "version=${VERSION}" >> $GITHUB_OUTPUT
4850
4951 - name : Build Boulder container and .deb
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ if [ -z "${GO_VERSION}" ] ; then
1313fi
1414
1515COMMIT_ID=" $( git rev-parse --short=8 HEAD) "
16- VERSION=" ${GO_VERSION} .$( date +%s) "
16+ # Use commit timestamp for reproducible builds
17+ COMMIT_TIMESTAMP=" $( git show -s --format=%ct HEAD) "
18+ VERSION=" ${GO_VERSION} .${COMMIT_TIMESTAMP} "
1719
1820# Determine what architecture to build for
1921if [ -n " ${DOCKER_DEFAULT_PLATFORM} " ]; then
You can’t perform that action at this time.
0 commit comments