🐛 fix: include Dockerfile.build in dependency hash calculation
This commit is contained in:
@@ -71,8 +71,8 @@ jobs:
|
|||||||
- name: Calculate dependency hash
|
- name: Calculate dependency hash
|
||||||
id: calculate_hash
|
id: calculate_hash
|
||||||
run: |
|
run: |
|
||||||
# Calculate hash of go.mod + go.sum (inline, no script needed)
|
# Calculate hash of go.mod + go.sum + Dockerfile.build (inline, no script needed)
|
||||||
DEPS_HASH=$(sha256sum go.mod go.sum | sha256sum | cut -d' ' -f1 | head -c 12)
|
DEPS_HASH=$(sha256sum go.mod go.sum docker/Dockerfile.build | sha256sum | cut -d' ' -f1 | head -c 12)
|
||||||
echo "Dependency hash: $DEPS_HASH"
|
echo "Dependency hash: $DEPS_HASH"
|
||||||
echo "deps_hash=$DEPS_HASH" >> $GITHUB_OUTPUT
|
echo "deps_hash=$DEPS_HASH" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# Build environment Dockerfile with pre-installed Go tools and dependencies
|
# Build environment Dockerfile with pre-installed Go tools and dependencies
|
||||||
# Optimized for CI/CD pipeline speed
|
# Optimized for CI/CD pipeline speed
|
||||||
|
# Updated to include Node.js for GitHub Actions compatibility
|
||||||
|
|
||||||
FROM golang:1.26.1-alpine AS builder
|
FROM golang:1.26.1-alpine AS builder
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user