use git commit hash verification when replaying archived games (#204)

This commit is contained in:
evanpelle
2025-03-10 12:40:36 -07:00
committed by GitHub
parent 6a24bce213
commit 5dc00bc3ab
10 changed files with 138 additions and 59 deletions
+9 -5
View File
@@ -54,13 +54,17 @@ if [ $? -ne 0 ]; then
fi
fi
GIT_COMMIT=$(git rev-parse HEAD)
echo "Git commit: $GIT_COMMIT"
# Build the Docker image
echo "Building Docker image..."
docker buildx build --platform linux/amd64 -t $ECR_REPO_NAME:$VERSION_TAG .
if [ $? -ne 0 ]; then
echo "Error: Docker build failed."
exit 1
fi
docker buildx build \
--platform linux/amd64 \
--build-arg GIT_COMMIT=$GIT_COMMIT \
-t $ECR_REPO_NAME:$VERSION_TAG \
.
# Authenticate to ECR
echo "Authenticating to ECR..."